{"id":"CVE-2021-23341","aliases":["CVE-2021-23341","GHSA-h4hr-7fg3-h35w"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS)","summary":"The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the prism-asciidoc, prism-rest, prism-tap and prism-eiffel components.","source":"cvelist"},{"lang":"en","text":"The package prismjs before 1.23.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the `prism-asciidoc`, `prism-rest`, `prism-tap` and `prism-eiffel` components.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete prismjs versiones anteriores a 1.23.0, es vulnerable a la Denegación de Servicio de Expresión Regular (ReDoS) por medio de los componentes prism-asciidoc, prism-rest, prism-tap y prism-eiffel","source":"nvd"}],"published":"2021-02-18T16:00:29.799Z","modified":"2026-06-17T03:38:35.283Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.23.0","status":"affected"}],"product":"prismjs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.23.0"}],"ecosystem":"npm","package":"prismjs","purl":"pkg:npm/prismjs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.23.0"}],"vendor":"prismjs","product":"prism","cpe":"cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-PRISMJS-1076581","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076582","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1076583","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PrismJS/prism/commit/c2f6a64426f44497a675cb32dccb079b3eff1609","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PrismJS/prism/issues/2583","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/PrismJS/prism/pull/2584","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23341","tags":["advisory"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/prismjs","tags":["web"],"sources":["ghsa"]}],"credits":["Yeting Li"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23341","url":"https://www.cve.org/CVERecord?id=CVE-2021-23341","licence":"CVE Terms of Use","modified":"2024-09-16T19:56:25.729Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h4hr-7fg3-h35w","url":"https://github.com/advisories/GHSA-h4hr-7fg3-h35w","licence":"CC-BY-4.0","modified":"2025-01-14T08:57:33.682Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23341","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23341","licence":"Public domain","modified":"2026-06-17T03:38:35.283Z"}],"updatedAt":"2026-11-25T22:57:59.986Z","epss":{"score":0.03205,"percentile":0.88932,"date":"2026-11-30T12:00:22.000Z"}}