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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-06-28 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-32723, GHSA-gj77-59wh-66hg
- Record: https://cvemate.com/vulnerability/CVE-2021-32723 · JSON: https://cvemate.com/vulnerability/CVE-2021-32723/json

## Description

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

## Signals

- CVSS: 7.4 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H
- EPSS: 1.421%, percentile 73.778%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu node-prismjs (Ubuntu): All versions (No fix recorded)
- Npm prismjs (Npm): \< 1.24.0
- oracle application\_express: \< 21.1.4
- prismjs prism: \< 1.24 \| \< 1.24.0

## References

- <https://github.com/PrismJS/prism/security/advisories/GHSA-gj77-59wh-66hg>
- <https://github.com/PrismJS/prism/pull/2688>
- <https://github.com/PrismJS/prism/pull/2774>
- <https://www.oracle.com/security-alerts/cpujan2022.html>
- <https://ubuntu.com/security/CVE-2021-32723>
- <https://www.cve.org/CVERecord?id=CVE-2021-32723>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32723>
- <https://github.com/PrismJS/prism/commit/d85e30da6755fdbe7f8559f8e75d122297167018>
- <https://github.com/PrismJS/prism>

---

Data as of 2026-12-05T04:47:38.531Z. 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
