ghsa-hqhp-5p83-hx96
Vulnerability from github
Published
2021-09-20 20:44
Modified
2022-08-10 23:38
Summary
prismjs Regular Expression Denial of Service vulnerability
Details

Prism is a syntax highlighting library. The prismjs package is vulnerable to ReDoS (regular expression denial of service). An attacker that is able to provide a crafted HTML comment as input may cause an application to consume an excessive amount of CPU.

Show details on source website


{
   affected: [
      {
         package: {
            ecosystem: "npm",
            name: "prismjs",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     fixed: "1.25.0",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
   ],
   aliases: [
      "CVE-2021-3801",
   ],
   database_specific: {
      cwe_ids: [
         "CWE-400",
      ],
      github_reviewed: true,
      github_reviewed_at: "2021-09-16T18:29:46Z",
      nvd_published_at: "2021-09-15T13:15:00Z",
      severity: "MODERATE",
   },
   details: "Prism is a syntax highlighting library. The prismjs package is vulnerable to ReDoS (regular expression denial of service). An attacker that is able to provide a crafted HTML comment as input may cause an application to consume an excessive amount of CPU.",
   id: "GHSA-hqhp-5p83-hx96",
   modified: "2022-08-10T23:38:25Z",
   published: "2021-09-20T20:44:48Z",
   references: [
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2021-3801",
      },
      {
         type: "WEB",
         url: "https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9",
      },
      {
         type: "PACKAGE",
         url: "https://github.com/prismjs/prism",
      },
      {
         type: "WEB",
         url: "https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
         type: "CVSS_V3",
      },
   ],
   summary: "prismjs Regular Expression Denial of Service vulnerability",
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.