CVE-2021-3801
mediumpriority · track · 26EPSS 0.010 · 64 %ileEUUSEPSS · scored 2026-10-24
prism is vulnerable to Inefficient Regular Expression Complexity
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.3–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-hqhp-5p83-hx96prismjs Regular Expression Denial of Service vulnerability2021-09-20ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9cnnvd
- https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8acnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-3801cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.4059cnnvd
- https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9enisa_euvd
- https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8aenisa_euvd
- https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9PatchThird Party Advisorynvd
- https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8aExploitIssue TrackingPatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan