# CVE-2021-23341: Regular Expression Denial of Service (ReDoS)

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.23.0 (CNA); fix release not confirmed
- Status: published
- Published: 2021-02-18 · Modified: 2024-09-16
- Aliases: UBUNTU-CVE-2021-23341, DEBIAN-CVE-2021-23341, GHSA-h4hr-7fg3-h35w
- Record: https://cvemate.com/vulnerability/CVE-2021-23341 · JSON: https://cvemate.com/vulnerability/CVE-2021-23341/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 3.205%, percentile 88.558%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 4 (github, reference)

## Affected

- debian node-prismjs (Debian): \< 1.23.0+dfsg-1
- ubuntu node-prismjs (Ubuntu): All versions (No fix recorded)
- Npm prismjs (Npm): \< 1.23.0
- prismjs prism: \< 1.23.0

## References

- <https://snyk.io/vuln/SNYK-JS-PRISMJS-1076581>
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076582>
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1076583>
- <https://github.com/PrismJS/prism/commit/c2f6a64426f44497a675cb32dccb079b3eff1609>
- <https://github.com/PrismJS/prism/issues/2583>
- <https://github.com/PrismJS/prism/pull/2584>
- <https://ubuntu.com/security/CVE-2021-23341>
- <https://www.cve.org/CVERecord?id=CVE-2021-23341>
- <https://security-tracker.debian.org/tracker/CVE-2021-23341>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23341>
- <https://www.npmjs.com/package/prismjs>

---

Data as of 2026-12-05T05:13:24.667Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
