Vulnerability Details : CVE-2021-32723
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.
Vulnerability category: Denial of service
Products affected by CVE-2021-32723
- cpe:2.3:a:oracle:application_express:*:*:*:*:*:*:*:*
- cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-32723
0.37%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 58 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-32723
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.3
|
MEDIUM | AV:N/AC:M/Au:N/C:N/I:N/A:P |
8.6
|
2.9
|
NIST | |
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
2.8
|
3.6
|
NIST | |
7.4
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H |
2.8
|
4.0
|
GitHub, Inc. |
CWE ids for CVE-2021-32723
-
The product does not properly control the allocation and maintenance of a limited resource.Assigned by:
- nvd@nist.gov (Secondary)
- security-advisories@github.com (Primary)
References for CVE-2021-32723
-
https://github.com/PrismJS/prism/pull/2774
Updated refa + fixed 2 cases of exponential backtracking by RunDevelopment · Pull Request #2774 · PrismJS/prism · GitHubPatch;Third Party Advisory
-
https://www.oracle.com/security-alerts/cpujan2022.html
Oracle Critical Patch Update Advisory - January 2022Patch;Third Party Advisory
-
https://github.com/PrismJS/prism/pull/2688
Tests: Exhaustive pattern tests by RunDevelopment · Pull Request #2688 · PrismJS/prism · GitHubPatch;Third Party Advisory
-
https://github.com/PrismJS/prism/security/advisories/GHSA-gj77-59wh-66hg
Regular Expression Denial of Service (ReDoS) in Prism · Advisory · PrismJS/prism · GitHubThird Party Advisory
Jump to