CVE-2021-3807: Inefficient Regular Expression Complexity in chalk/ansi-regex
Vulnerability summary
CVE-2021-3807 is a high (CVSS 7.8) vulnerability in ansi-regex_project ansi-regex. EPSS estimates a 3.55% chance of exploitation in the next 30 days, higher than 89.3% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 28 · Related 22Timeline
- 17-09-2021PublishedVulnerability first disclosed.
- 08-10-2026Last modifiedVulnerability information updated.
Description
ansi-regex is vulnerable to Inefficient Regular Expression Complexity
CVSS metrics
9 scores · 6 sources · 3 versions- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
3.55%
Chance of exploitation in the next 30 days
Percentile
89%
Versus all other CVEs
30-day change
No change 0.00 pp
From 3.55% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (huntr.dev)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard2 products
- arangodb-3.11< 3.11.14.5-r21
- arangodb-3.12< 3.12.9.4-r17
Ansi-regex_project1 product
- ansi-regex≥ 4.0.0, < 4.1.1 | 3.0.0 | 5.0.0 | 6.0.0
Chalk1 product
- chalk/ansi-regex≥ unspecified, < 6.0.1 | ≥ unspecified, < 5.0.1
Debian1 product
- node-ansi-regex< 5.0.1-1
Npm1 product
- ansi-regex≥ 6.0.0, < 6.0.1 | ≥ 5.0.0, < 5.0.1 | ≥ 4.0.0, < 4.1.1 | ≥ 3.0.0, < 3.0.1
Oracle1 product
Ubuntu1 product
- node-ansi-regexAll versions (No fix recorded)
7 vendors · 8 products
References
17 links- huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994REPORTWEBFIXExploitIssue TrackingPatchThird Party Advisory
- github.com/chalk/ansi-regex/commit/8d1d7cdb586269882c4bdc1b7325d0c58c8f76f9REPORTWEBFIXPatchThird Party Advisory
Show all 17 references
- github.com/chalk/ansi-regexPACKAGE