{"id":"GHSA-hqhp-5p83-hx96","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.","aliases":["CVE-2021-3801"],"modified":"2023-11-01T04:55:56.686437Z","published":"2021-09-20T20:44:48Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2021-09-16T18:29:46Z","nvd_published_at":"2021-09-15T13:15:00Z","cwe_ids":["CWE-400"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3801"},{"type":"WEB","url":"https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9"},{"type":"PACKAGE","url":"https://github.com/prismjs/prism"},{"type":"WEB","url":"https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a"}],"affected":[{"package":{"name":"prismjs","ecosystem":"npm","purl":"pkg:npm/prismjs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.25.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-hqhp-5p83-hx96/GHSA-hqhp-5p83-hx96.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}