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

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.21%, higher than 88% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2021-02-18T16:00:29.799Z
- Modified: 2026-06-17T03:38:35.283Z
- Also known as: GHSA-h4hr-7fg3-h35w
- Weaknesses: CWE-400
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- prismjs: from unspecified before 1.23.0
- prismjs (npm): before 1.23.0
- prismjs prism: before 1.23.0

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: rating High
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-PRISMJS-1076581> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076582> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1076583> (exploit, third-party-advisory, web)
- <https://github.com/PrismJS/prism/issues/2583> (exploit, patch, third-party-advisory, web)
- <https://github.com/PrismJS/prism/commit/c2f6a64426f44497a675cb32dccb079b3eff1609> (patch, third-party-advisory, web)
- <https://github.com/PrismJS/prism/pull/2584> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23341> (advisory)
- <https://www.npmjs.com/package/prismjs> (web)

## Sources

- CVE List: [CVE-2021-23341](https://www.cve.org/CVERecord?id=CVE-2021-23341), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-h4hr-7fg3-h35w](https://github.com/advisories/GHSA-h4hr-7fg3-h35w), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2021-23341](https://nvd.nist.gov/vuln/detail/CVE-2021-23341), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23341 · Whole record: https://cve.day/CVE-2021-23341.json · Rebuilt by cve.day 2026-11-25T22:57:59.986Z
