CVE-2021-32723
mediumpriority · track · 26EPSS 0.014 · 73 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.3–7.4
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (5)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-gj77-59wh-66hgRegular Expression Denial of Service (ReDoS) in Prism2021-06-28ghsa · osvUS
Some languages before 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS). ### Impact 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. Do not use the following languages to highlight untrusted text. - ASCIIDoc - ERB Other languages are __not__ affected and can be used to highlight untrusted text. ### Patches This problem has been fixed in Prism v1.24. ### References - PrismJS/prism#2774 - PrismJS/prism#2688
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- https://github.com/PrismJS/prism/pull/2688cnnvd
- https://github.com/PrismJS/prism/pull/2774cnnvd
- https://github.com/PrismJS/prism/security/advisories/GHSA-gj77-59wh-66hgcnnvd
- https://vigilance.fr/vulnerability/Node-js-prismjs-overload-via-Regular-Expression-35789cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2022011822cnnvd
- https://www.oracle.com/security-alerts/cpujan2022.htmlcnnvd
- https://github.com/PrismJS/prism/pull/2688enisa_euvd
- https://github.com/PrismJS/prism/pull/2774enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan