CVE-2021-3801 json
Inefficient Regular Expression Complexity in prismjs/prism
published 2021-09-15 5 y ago modified 2026-06-17 4 mo ago also GHSA-hqhp-5p83-hx96 , EUVD-2021-2075
- cvss
- 7.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
prism is vulnerable to Inefficient Regular Expression Complexity
Patch / fix
- npm prismjs 1.25.0
- prismjs prism 1.25.0
- node-prismjs Debian 14, Debian 13, Debian 12 1.25.0+dfsg-1
debian advisories DEBIAN-CVE-2021-3801
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3801 updated cvss 6.5
nodejs-prismjs: ReDoS vulnerability
-
Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-ui-rhel8affected: no fix available “Fix deferred”
-
Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-grafana-prometheusaffected: no fix available
-
Red Hat Ceph Storage 3 grafanaaffected: no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-grafana Red Hat Storage 3 grafanaaffected: no fix planned “Will not fix”
-
Red Hat RHACS 3.67 for RHEL 8 advanced-cluster-security/rhacs-rhel8-operator 3.67.0-3fixed: vendor fix RHSA-2021:4902
-
Red Hat Ceph Storage 4 rhceph/rhceph-4-dashboard-rhel8 Red Hat RHACS 3.67 for RHEL 8 advanced-cluster-security/rhacs-operator-bundle 3.67.0-2not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.04% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.dev https://huntr.dev/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | prismjs | <1.25.0 |
1.25.0 |
Affected products
- prismjs prismjs/prism
Classification
References
-
github.com
/prismjs/prism/commit/0ff371bb4775a131634f47d0fe85794c547232f9
web, patch, third-party-advisory
-
huntr.dev
/bounties/8c16ab31-6eb6-46d1-b9a4-387222fe1b8a
web, exploit, issue-tracking, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-3801
advisory
-
github.com
/prismjs/prism
package
Sources
- CVE List CVE-2021-3801
- GitHub Advisory GHSA-hqhp-5p83-hx96
- NVD CVE-2021-3801
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.