Back
CVE-2021-23341Regular Expression Denial of Service (ReDoS)
- 7.5HighCVSS base score
- 3.2%Exploitation in 30 daysEPSS · top 12% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components.
Timeline
ID reserved
By snyk
- 41 days later
· 41 days later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 3.2% · top 12% of all CVEs (16 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
prismjs
- affected unspecified – < 1.23.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmprismjsGHSA-h4hr-7fg3-h35w (opens in a new tab)
References
References6
- https://snyk.io/vuln/SNYK-JS-PRISMJS-1076581 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076582 (opens in a new tab)x_refsource_MISCx_transferred
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1076583 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/PrismJS/prism/commit/c2f6a64426f44497a675cb32dccb079b3eff1609 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/PrismJS/prism/issues/2583 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/PrismJS/prism/pull/2584 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0662 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-h4hr-7fg3-h35w (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-23341)Record last updated .