high7.5
CVE-2021-23341
Denial of service in prismjs
Impact
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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | prismjs | < 1.23.0 | 1.23.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Prismjs | Prism | before 1.23.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/PrismJS/prism/commit/c2f6a64426f44497a675cb32dccb079b3eff1609
- https://github.com/PrismJS/prism/issues/2583
- https://github.com/PrismJS/prism/pull/2584
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1076583
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076582
- https://snyk.io/vuln/SNYK-JS-PRISMJS-1076581
- https://github.com/advisories/GHSA-h4hr-7fg3-h35w
- https://nvd.nist.gov/vuln/detail/CVE-2021-23341
- https://www.npmjs.com/package/prismjs