{"id":"CVE-2021-3801","published":"2021-09-15T12:40:11Z","modified":"2024-08-03T17:09:09Z","title":"Inefficient Regular Expression Complexity in prismjs/prism","vendor":"prismjs","product":"prismjs/prism","tier":"tail","description":{"text":"prism is vulnerable to Inefficient Regular Expression Complexity","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/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.01036,"percentile":0.64717,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9","tags":["x_refsource_MISC"]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":12.94},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"prismjs","affectedVersions":[{"vendor":"prismjs","product":"prismjs/prism","versions":[">= unspecified, <= 1.24.1"]}],"affected":[{"ecosystem":"npm","package":"prismjs","vulnerableRanges":["<1.25.0"],"patched":["1.25.0"],"from":["GHSA-hqhp-5p83-hx96"],"provenance":"source"}],"summary":{"text":"The prismjs/prism syntax highlighting library is affected by an inefficient regular expression complexity flaw (ReDoS) in its pattern-matching logic. An attacker able to supply input that is processed by the library, with no authentication or user interaction required over the network and under default configuration, can trigger excessive backtracking that exhausts resources and makes the service unavailable.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:21Z"},"euvd":{"id":"EUVD-2021-2075","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-prismjs-prism-cve-2021-3801","children":[{"from":"CVE-2021-3801","to":"CVE-2024-53382","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["prism.js"],"commits":["https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9","https://github.com/PrismJS/prism/commit/8e8b9352dac64457194dd9e51096b4772532e53d"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2020-15138","published":"2020-08-07","fixed":"1.21.0","kev":false},{"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,"link":{"from":"CVE-2021-32723","to":"CVE-2021-3801","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:prismjs","fromFixed":"1.24.0","toFixed":"1.25.0","daysApart":79}]}},{"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,"link":{"from":"CVE-2021-3801","to":"CVE-2022-23647","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:prismjs","fromFixed":"1.25.0","toFixed":"1.27.0","daysApart":156}]}},{"cve":"CVE-2024-53382","published":"2025-03-03","fixed":"1.30.0","kev":false}],"package":"npm:prismjs"}}