{"id":"CVE-2021-32723","aliases":["GHSA-gj77-59wh-66hg"],"url":"https://o3.security/vulnerability/CVE-2021-32723","summary":"Regular Expression Denial of Service (ReDoS) in Prism","details":"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.","published":"2021-06-28T20:15:07.857Z","modified":"2026-07-08T06:29:16.523315970Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"prismjs","fixedVersion":"1.24.0"}],"fix":{"url":"https://github.com/PrismJS/prism/pull/2688","label":"PrismJS/prism#2688"},"references":[{"type":"ADVISORY","url":"https://github.com/PrismJS/prism/security/advisories/GHSA-gj77-59wh-66hg"},{"type":"FIX","url":"https://github.com/PrismJS/prism/pull/2688"},{"type":"FIX","url":"https://github.com/PrismJS/prism/pull/2774"},{"type":"FIX","url":"https://www.oracle.com/security-alerts/cpujan2022.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T06:29:16.523315970Z"}}