{"id":"GHSA-gj77-59wh-66hg","revision":"bf0ccc5816f24c3ea33befc6a9ce99f5","records":[{"revision":"bf0ccc5816f24c3ea33befc6a9ce99f5","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-gj77-59wh-66hg","aliases":["CVE-2021-32723"],"title":"Regular Expression Denial of Service (ReDoS) in Prism","description":"Some languages before 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS).\n\n### Impact\n\nWhen 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.\n\n- ASCIIDoc\n- ERB\n\nOther languages are __not__ affected and can be used to highlight untrusted text.\n\n### Patches\nThis problem has been fixed in Prism v1.24.\n\n### References\n\n- PrismJS/prism#2774\n- PrismJS/prism#2688\n","state":0,"publishedAt":"2021-06-28T18:33:18+00:00","modifiedAt":"2026-07-08T06:28:40.1296172+00:00","affected":[{"ecosystem":"npm","name":"prismjs","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.24.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/PrismJS/prism/security/advisories/GHSA-gj77-59wh-66hg","https://nvd.nist.gov/vuln/detail/CVE-2021-32723","https://github.com/PrismJS/prism/pull/2688","https://github.com/PrismJS/prism/pull/2774","https://github.com/PrismJS/prism/commit/d85e30da6755fdbe7f8559f8e75d122297167018","https://github.com/PrismJS/prism","https://www.oracle.com/security-alerts/cpujan2022.html"],"sourceUrl":"https://github.com/advisories/GHSA-gj77-59wh-66hg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-gj77-59wh-66hg","identifiers":["GHSA-gj77-59wh-66hg","CVE-2021-32723"]},"retained":false,"historicalAffected":[]}],"coverage":[]}