Vulnerability · Published Feb 18, 2021 · Assigned by snyk
CVE-2021-23341Regular Expression Denial of Service (ReDoS)
High 7.5
In plain English
A high-severity security flaw in prismjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)3.2%top 11.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-prismjs | 1.23.0+dfsg-1 | DEBIAN-CVE-2021-23341 |
| Debian:13 | node-prismjs | 1.23.0+dfsg-1 | DEBIAN-CVE-2021-23341 |
| Debian:14 | node-prismjs | 1.23.0+dfsg-1 | DEBIAN-CVE-2021-23341 |
| Ubuntu:22.04:LTS | node-prismjs | no fix listed | UBUNTU-CVE-2021-23341 |
| Ubuntu:24.04:LTS | node-prismjs | no fix listed | UBUNTU-CVE-2021-23341 |
| Ubuntu:25.10 | node-prismjs | no fix listed | UBUNTU-CVE-2021-23341 |
| Ubuntu:26.04:LTS | node-prismjs | no fix listed | UBUNTU-CVE-2021-23341 |
| Ubuntu:26.10 | node-prismjs | no fix listed | UBUNTU-CVE-2021-23341 |
| npm | prismjs | 1.23.0 | GHSA-h4hr-7fg3-h35w |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-PRISMJS-1076581 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076582 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1076583 x_refsource_MISC
- https://github.com/PrismJS/prism/commit/c2f6a64426f44497a675cb32dccb079b3eff1609 x_refsource_MISC
- https://github.com/PrismJS/prism/issues/2583 x_refsource_MISC
- https://github.com/PrismJS/prism/pull/2584 x_refsource_MISC