CVE-2021-32723 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/PrismJS/prism/pull/2688 | CVE | PatchThird Party Advisory |
| https://github.com/PrismJS/prism/pull/2774 | CVE | PatchThird Party Advisory |
| https://github.com/PrismJS/prism/security/advisories/GHSA-gj77-59wh-66hg | CVE | Third Party Advisory |
| https://www.oracle.com/security-alerts/cpujan2022.html | CVE | PatchThird Party Advisory |
| https://github.com/PrismJS/prism/pull/2688 | [email protected] | PatchThird Party Advisory |
| https://github.com/PrismJS/prism/pull/2774 | [email protected] | PatchThird Party Advisory |
| https://github.com/PrismJS/prism/security/advisories/GHSA-gj77-59wh-66hg | [email protected] | Third Party Advisory |
| https://www.oracle.com/security-alerts/cpujan2022.html | [email protected] | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| prismjs prism | < 1.24.0 |
CPE
Remediation
| |
| oracle application express | < 21.1.4 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Mar 28, 2022 | Modified Analysis | [email protected] |
| Feb 7, 2022 | CVE Modified | [email protected] |
| Jul 2, 2021 | Initial Analysis | [email protected] |