{"id":"CVE-2021-23341","published":"2021-02-18T16:00:29Z","modified":"2024-09-16T19:56:25Z","title":"Regular Expression Denial of Service (ReDoS)","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03205,"percentile":0.88462,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-PRISMJS-1076581","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1076582","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1076583","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrismJS/prism/commit/c2f6a64426f44497a675cb32dccb079b3eff1609","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrismJS/prism/issues/2583","tags":["x_refsource_MISC"]},{"url":"https://github.com/PrismJS/prism/pull/2584","tags":["x_refsource_MISC"]}],"priority":{"score":22.9,"factors":[{"name":"EPSS percentile","points":17.69},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":"n/a","product":"prismjs","versions":[">= unspecified, < 1.23.0"]}],"affected":[{"ecosystem":"npm","package":"prismjs","vulnerableRanges":["<1.23.0"],"patched":["1.23.0"],"from":["GHSA-h4hr-7fg3-h35w"],"provenance":"source"}],"summary":{"text":"The prismjs package before version 1.23.0 contains a Regular Expression Denial of Service (ReDoS) flaw in its prism-asciidoc, prism-rest, prism-tap and prism-eiffel components. An attacker with network access can trigger the flaw without authentication or user interaction, causing high availability impact through resource exhaustion.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:48Z"},"euvd":{"id":"EUVD-2021-0662","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-prismjs-prism-cve-2021-23341","children":[{"from":"CVE-2021-23341","to":"CVE-2021-32723","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:prismjs","fromFixed":"1.23.0","toFixed":"1.24.0","daysApart":130},{"kind":"same-code","provenance":"machine","files":["components/prism-asciidoc.js","components/prism-asciidoc.min.js"],"commits":["https://github.com/PrismJS/prism/commit/c2f6a64426f44497a675cb32dccb079b3eff1609","https://github.com/PrismJS/prism/commit/d85e30da6755fdbe7f8559f8e75d122297167018"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2020-15138","published":"2020-08-07","fixed":"1.21.0","kev":false,"link":{"from":"CVE-2020-15138","to":"CVE-2021-23341","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:prismjs","fromFixed":"1.21.0","toFixed":"1.23.0","daysApart":195}]}},{"cve":"CVE-2021-23341","published":"2021-02-18","fixed":"1.23.0","kev":false},{"cve":"CVE-2021-32723","published":"2021-06-28","fixed":"1.24.0","kev":false},{"cve":"CVE-2021-3801","published":"2021-09-15","fixed":"1.25.0","kev":false},{"cve":"CVE-2022-23647","published":"2022-02-18","fixed":"1.27.0","kev":false}],"package":"npm:prismjs"}}