{"id":"CVE-2021-3801","aliases":["GHSA-hqhp-5p83-hx96"],"url":"https://o3.security/vulnerability/CVE-2021-3801","summary":"prismjs Regular Expression Denial of Service vulnerability","details":"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.","published":"2021-09-15T13:15:08.360Z","modified":"2026-07-08T22:13:47.672793Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"prismjs","fixedVersion":"1.25.0"}],"fix":{"url":"https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9","label":"prismjs/prism@0ff371b"},"references":[{"type":"FIX","url":"https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9"},{"type":"FIX","url":"https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3801"},{"type":"PACKAGE","url":"https://github.com/prismjs/prism"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T22:13:47.672793Z"}}