# CVE-2021-32723: Regular Expression Denial of Service (ReDoS) in Prism

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/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): 1.42%, higher than 73% of CVEs (2026-12-01)
- Published: 2021-06-28T18:33:18.000Z
- Modified: 2026-07-08T06:28:40.129Z
- Also known as: GHSA-gj77-59wh-66hg
- Weaknesses: CWE-400
- Assigned by: GitHub_M

## Description

Prism is a syntax highlighting library. Some languages before 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS). When Prism is used to highlight untrusted (user-given) text, an attacker can craft a string that will take a very very long time to highlight. This problem has been fixed in Prism v1.24. As a workaround, do not use ASCIIDoc or ERB to highlight untrusted text. Other languages are not affected and can be used to highlight untrusted text.

(As written by CVE List.)

## Affected

- PrismJS prism: < 1.24; before 1.24.0
- prismjs (npm): before 1.24.0
- oracle application_express: before 21.1.4

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/PrismJS/prism/security/advisories/GHSA-gj77-59wh-66hg> (third-party-advisory, web)
- <https://github.com/PrismJS/prism/pull/2688> (patch, third-party-advisory, web)
- <https://github.com/PrismJS/prism/pull/2774> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32723> (advisory)
- <https://github.com/PrismJS/prism/commit/d85e30da6755fdbe7f8559f8e75d122297167018> (web)
- <https://github.com/PrismJS/prism> (package)

## Sources

- CVE List: [CVE-2021-32723](https://www.cve.org/CVERecord?id=CVE-2021-32723), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-gj77-59wh-66hg](https://github.com/advisories/GHSA-gj77-59wh-66hg), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-32723](https://nvd.nist.gov/vuln/detail/CVE-2021-32723), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32723 · Whole record: https://cve.day/CVE-2021-32723.json · Rebuilt by cve.day 2026-11-25T22:58:02.359Z
