{"id":"CVE-2021-3801","aliases":["CVE-2021-3801","GHSA-hqhp-5p83-hx96"],"related":[],"kind":"vulnerability","state":"published","title":"Inefficient Regular Expression Complexity in prismjs/prism","summary":"prism is vulnerable to Inefficient Regular Expression Complexity","summarySource":"cvelist","descriptions":[{"lang":"en","text":"prism is vulnerable to Inefficient Regular Expression Complexity","source":"cvelist"},{"lang":"en","text":"Prism is a syntax highlighting library. The prismjs package is vulnerable to ReDoS (regular expression denial of service). An attacker that is able to provide a crafted HTML comment as input may cause an application to consume an excessive amount of CPU.","format":"markdown","source":"ghsa"},{"lang":"es","text":"prism es vulnerable a una Complejidad de Expresión Regular Ineficiente","source":"nvd"}],"published":"2021-09-15T12:40:11.000Z","modified":"2026-06-17T04:05:47.697Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-1333"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"1.24.1","status":"affected"}],"vendor":"prismjs","product":"prismjs/prism","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.25.0"}],"ecosystem":"npm","package":"prismjs","purl":"pkg:npm/prismjs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.25.0"}],"vendor":"prismjs","product":"prism","cpe":"cpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3801","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/prismjs/prism","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3801","url":"https://www.cve.org/CVERecord?id=CVE-2021-3801","licence":"CVE Terms of Use","modified":"2024-08-03T17:09:09.479Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hqhp-5p83-hx96","url":"https://github.com/advisories/GHSA-hqhp-5p83-hx96","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:25.064Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3801","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3801","licence":"Public domain","modified":"2026-06-17T04:05:47.697Z"}],"updatedAt":"2026-11-25T22:58:03.985Z","epss":{"score":0.01036,"percentile":0.64846,"date":"2026-12-01T12:00:22.000Z"}}