What’s Vulnerable › Vulnerabilities
CVE-2021-3801: Inefficient Regular Expression Complexity in prismjs/prism
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-09-15 · updated 2026-06-17
- Weakness: CWE-1333
Description
prism is vulnerable to Inefficient Regular Expression Complexity
Affected products
- PrismJS prism: before 1.25.0 — fixed in 1.25.0
How to fix
Upgrade to a fixed version: PrismJS prism 1.25.0. Check the vendor advisory for mitigations.
References
- https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9
- https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a
- https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9
- https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a
Get alerted when CVE-2021-3801 or the next vulnerability affects your stack