CVE-2021-3801
MEDIUM 6.5CVSS 3.1prismjs Regular Expression Denial of Service vulnerability
prism is vulnerable to Inefficient Regular Expression Complexity
- Published
- 15 Sep 2021
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-hqhp-5p83-hx96
- Sources
- NVDJSONOSV GHSA-hqhp-5p83-hx96JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | prismjs | prismcpe:2.3:a:prismjs:prism:*:*:*:*:*:node.js:*:* |
< 1.25.0 | 1.25.0 |
| OSV | npm | prismjs | < 1.25.0 | 1.25.0 |
References
- https://github.com/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9 · Patch, Third Party Advisory, WEB
- https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3801 · ADVISORY
- https://github.com/prismjs/prism · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 15 Sep 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Sep 2021)