{"id":"CVE-2021-3801","aliases":["CLSA-2026-1793304056","DEBIAN-CVE-2021-3801","EUVD-2021-2075","GHSA-hqhp-5p83-hx96","UBUNTU-CVE-2021-3801"],"status":"published","title":"Inefficient Regular Expression Complexity in prismjs/prism","description":"prism is vulnerable to Inefficient Regular Expression Complexity","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01036,"percentile":0.6415,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1333","CWE-400"],"published":"2021-09-15T12:40:11Z","modified":"2026-10-30T02:15:07Z","fixes":[{"ecosystem":"npm","package":"prismjs","fixed_in":["1.25.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"node-prismjs","fixed_in":["1.25.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"node-prismjs","fixed_in":["1.25.0+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"node-prismjs","fixed_in":["1.25.0+dfsg-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.0"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.17.1-tuxcare.0"},{"fixed":"1.17.1-tuxcare.1"}]}],"versions":["1.17.1"],"bundled":6},{"source":"osv","ecosystem":"Debian:12","package":"node-prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"node-prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"node-prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.25.0+dfsg-1"}]}]},{"source":"osv","ecosystem":"npm","package":"prismjs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.25.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"node-prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11.0+dfsg-2","1.11.0+dfsg-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"node-prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.23.0+dfsg-1","1.25.0+dfsg-1","1.27.0+dfsg+~1.26.0-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"node-prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.29.0+dfsg+~1.26.0-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"node-prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.29.0+dfsg+~1.26.0-1","1.30.0+dfsg+~1.26.5-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"node-prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.30.0+dfsg+~1.26.6-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"node-prismjs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.30.0+dfsg+~1.26.5-1","1.30.0+dfsg+~1.26.5-2","1.30.0+dfsg+~1.26.6-1"]}],"products":[{"vendor":"prismjs","product":"prism"},{"vendor":"prismjs","product":"prismjs/prism"}],"references":[{"url":"https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3801","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hqhp-5p83-hx96"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3801","tags":["advisory"]},{"url":"https://github.com/prismjs/prism","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2021-3801","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3801","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3801","title":"Inefficient Regular Expression Complexity in prismjs/prism","description":"prism is vulnerable to Inefficient Regular Expression Complexity","status":"published","published":"2021-09-15T12:40:11Z","modified":"2024-08-03T17:09:09.479Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:33:03.671751Z"}],"euvd":[{"id":"EUVD-2021-2075","description":"prism is vulnerable to Inefficient Regular Expression Complexity","status":"published","published":"2021-09-15T12:40:11Z","modified":"2024-08-03T17:09:09Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T03:25:11.376657Z"}],"ghsa":[{"id":"GHSA-hqhp-5p83-hx96","title":"prismjs Regular Expression Denial of Service vulnerability","description":"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.","status":"published","published":"2021-09-20T20:44:48Z","modified":"2023-01-29T05:02:55Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:36:25.835323Z"}],"nvd":[{"id":"CVE-2021-3801","description":"prism is vulnerable to Inefficient Regular Expression Complexity","status":"published","published":"2021-09-15T13:15:08.36Z","modified":"2026-06-17T04:05:47.697Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:06:58.502206Z"}],"osv":[{"id":"CVE-2021-3801","description":"prism is vulnerable to Inefficient Regular Expression Complexity","status":"published","published":"2021-09-15T13:15:08.36Z","modified":"2026-10-20T10:54:50.679469123Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:20.843843Z"},{"id":"DEBIAN-CVE-2021-3801","description":"prism is vulnerable to Inefficient Regular Expression Complexity","status":"published","published":"2021-09-15T13:15:08.36Z","modified":"2026-10-23T18:03:31.161335167Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"GHSA-hqhp-5p83-hx96","title":"prismjs Regular Expression Denial of Service vulnerability","description":"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.","status":"published","published":"2021-09-20T20:44:48Z","modified":"2023-11-08T04:06:25.064044Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:49.28217Z"},{"id":"UBUNTU-CVE-2021-3801","description":"prism is vulnerable to Inefficient Regular Expression Complexity","status":"published","published":"2021-09-15T13:15:00Z","modified":"2026-10-17T12:57:13.624958325Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:28.526929Z"},{"id":"CLSA-2026-1793304056","title":"TuxCare security update for prismjs (6 CVEs)","description":"TuxCare rebuilt prismjs to address 6 CVEs. Fixed in 1.17.1-tuxcare.1.","status":"published","published":"2026-10-29T21:00:57Z","modified":"2026-10-30T02:15:07.694579967Z","updated_at":"2026-11-02T15:43:55.669514Z"}]}}
