ansi-regex is vulnerable to Inefficient Regular Expression Complexity
CVE-2021-3807
This high-severity CVE scores 7.5 under NVD CVSS v3. EPSS exploit probability: 0.2%, top 56% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.5
- EG Score
- 7.5(medium)
- EPSS
- 87.1%
- KEV
- Not listed
Published
September 17, 2021
Last Modified
November 21, 2024
References (8)
- security@huntrhttps://github.com/chalk/ansi-regex/commit/8d1d7cdb586269882c4bdc1b7325d0c58c8f76f9
- security@huntrhttps://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994
- security@huntrhttps://security.netapp.com/advisory/ntap-20221014-0002/
- security@huntrhttps://www.oracle.com/security-alerts/cpuapr2022.html
- af854a3a-2127-422b-91ae-364da2661108https://github.com/chalk/ansi-regex/commit/8d1d7cdb586269882c4bdc1b7325d0c58c8f76f9
- af854a3a-2127-422b-91ae-364da2661108https://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994
- af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20221014-0002/
- af854a3a-2127-422b-91ae-364da2661108https://www.oracle.com/security-alerts/cpuapr2022.html
Vendor Advisories for CVE-2021-3807(5)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2023:3742Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.13.0 security and bug fix update
- RHSA-2022:5532Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Fuse 7.11.0 release and security update
- RHSA-2022:5483Red Hat Product SecurityMedium
Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.7.2 security and bug fix update
- RHSA-2022:0735Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Advanced Cluster Management 2.4.2 security updates and bug fixes
- RHSA-2022:0041Red Hat Product SecurityMedium
Red Hat Security Advisory: rh-nodejs14-nodejs and rh-nodejs14-nodejs-nodemon security update
Patch Availability(12)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | odf4/mcg-core-rhel9:v4.13.0-41 | 2023-06-21 | redhat |
| redhat | nodejs-nodemon-0:2.0.19-1.el9_0 | 2022-09-20 | redhat |
| redhat | nodejs:16-8060020220805104227.ad008a3a | 2022-09-13 | redhat |
| redhat | ovirt-web-ui-0:1.9.0-1.el8ev | 2022-07-14 | redhat |
| redhat | io.hawt-project | 2022-07-07 | redhat |
| redhat | rhmtc/openshift-migration-ui-rhel8:v1.7.2-9 | 2022-07-01 | redhat |
| redhat | rhmtc/openshift-migration-ui-rhel8:v1.6.5-8 | 2022-05-31 | redhat |
| redhat | ovirt-engine-ui-extensions-0:1.3.3-1.el8ev | 2022-05-26 | redhat |
| redhat | nodejs:14-8050020211213115342.c5368500 | 2022-02-01 | redhat |
| redhat | nodejs:14-8040020211213111158.522a0ee4 | 2022-01-25 | redhat |
| redhat | rh-nodejs14-nodejs-nodemon-0:2.0.3-6.el7 | 2022-01-06 | redhat |
| redhat | nodejs:16-8050020211206113934.c5368500 | 2021-12-16 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ansi-regex | — | 3.0.1 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(8)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2021:5171MODERATE2021-09-17
RHSA-2021:5171 — Moderate
- Red HatRHSA-2022:0246MODERATE2021-09-17
RHSA-2022:0246 — Moderate
- Red HatRHSA-2022:0350MODERATE2021-09-17
RHSA-2022:0350 — Moderate
- Red HatRHSA-2022:4711MODERATE2021-09-17
RHSA-2022:4711 — Moderate
- Red HatRHSA-2022:4814MODERATE2021-09-17
RHSA-2022:4814 — Moderate
- Red HatRHSA-2022:5555MODERATE2021-09-17
RHSA-2022:5555 — Moderate
- Red HatRHSA-2022:6449MODERATE2021-09-17
RHSA-2022:6449 — Moderate
- Red HatRHSA-2022:6595MODERATE2021-09-17
RHSA-2022:6595 — Moderate
Data Freshness Timeline
(refreshed 11× in last 7d / 50× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:57 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 13:30 UTCOSV refresh
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:05 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
Show 61 moreShow fewer
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 21:10 UTCOSV refresh
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 10:15 UTCEG score recompute
- 2026-05-26 10:15 UTCVendor advisory
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
Frequently asked(5)
What is CVE-2021-3807?
When was CVE-2021-3807 disclosed?
Is CVE-2021-3807 actively exploited?
What is the CVSS score of CVE-2021-3807?
How do I remediate CVE-2021-3807?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-3807
Is Your Infrastructure Affected by CVE-2021-3807?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.