Vulnerability · Published Sep 15, 2021 · Assigned by @huntrdev
CVE-2021-3801Inefficient Regular Expression Complexity in prismjs/prism
High 7.5
In plain English
A high-severity regular-expression denial of service in prismjs/prism from prismjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)7.5High
Exploit odds (30 days)1.0%top 35.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
prism is vulnerable to Inefficient Regular Expression Complexity
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-prismjs | 1.25.0+dfsg-1 | DEBIAN-CVE-2021-3801 |
| Debian:13 | node-prismjs | 1.25.0+dfsg-1 | DEBIAN-CVE-2021-3801 |
| Debian:14 | node-prismjs | 1.25.0+dfsg-1 | DEBIAN-CVE-2021-3801 |
| Ubuntu:22.04:LTS | node-prismjs | no fix listed | UBUNTU-CVE-2021-3801 |
| Ubuntu:24.04:LTS | node-prismjs | no fix listed | UBUNTU-CVE-2021-3801 |
| Ubuntu:25.10 | node-prismjs | no fix listed | UBUNTU-CVE-2021-3801 |
| Ubuntu:26.04:LTS | node-prismjs | no fix listed | UBUNTU-CVE-2021-3801 |
| Ubuntu:26.10 | node-prismjs | no fix listed | UBUNTU-CVE-2021-3801 |
| npm | prismjs | 1.25.0 | GHSA-hqhp-5p83-hx96 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| prismjs | prismjs/prism | unspecified – through 1.24.1 |
Weakness: CWE-1333 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a x_refsource_CONFIRM
- https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9 x_refsource_MISC