CVE-2021-3807
HIGH 7.5CVSS 3.1Inefficient Regular Expression Complexity in chalk/ansi-regex
ansi-regex is vulnerable to Inefficient Regular Expression Complexity
- Published
- 17 Sep 2021
- Last modified
- 8 Oct 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-1333CWE-697
- Also known as
- GHSA-93q8-gq69-wqmw
- Sources
- NVDJSONOSV GHSA-93q8-gq69-wqmwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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 | HIGH 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ansi-regex_project | ansi-regexcpe:2.3:a:ansi-regex_project:ansi-regex:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.1.1 | 4.1.1 |
| NVD | ansi-regex_project | ansi-regexcpe:2.3:a:ansi-regex_project:ansi-regex:3.0.0:*:*:*:*:node.js:*:* |
= 3.0.0 | |
| NVD | ansi-regex_project | ansi-regexcpe:2.3:a:ansi-regex_project:ansi-regex:5.0.0:*:*:*:*:node.js:*:* |
= 5.0.0 | |
| NVD | ansi-regex_project | ansi-regexcpe:2.3:a:ansi-regex_project:ansi-regex:6.0.0:*:*:*:*:node.js:*:* |
= 6.0.0 | |
| NVD | oracle | communications_cloud_native_core_policycpe:2.3:a:oracle:communications_cloud_native_core_policy:1.15.0:*:*:*:*:*:*:* |
= 1.15.0 | |
| OSV | npm | ansi-regex | >= 6.0.0, < 6.0.1 | 6.0.1 |
| OSV | npm | ansi-regex | >= 5.0.0, < 5.0.1 | 5.0.1 |
| OSV | npm | ansi-regex | >= 4.0.0, < 4.1.1 | 4.1.1 |
| OSV | npm | ansi-regex | >= 3.0.0, < 3.0.1 | 3.0.1 |
References
- https://github.com/chalk/ansi-regex/commit/8d1d7cdb586269882c4bdc1b7325d0c58c8f76f9 · Patch, Third Party Advisory, WEB
- https://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20221014-0002/ · Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpuapr2022.html · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3807 · ADVISORY
- https://github.com/chalk/ansi-regex/issues/38#issuecomment-924086311 · WEB
- https://github.com/chalk/ansi-regex/issues/38#issuecomment-925924774 · WEB
- https://github.com/chalk/ansi-regex/commit/419250fa510bf31b4cc672e76537a64f9332e1f1 · WEB
- https://github.com/chalk/ansi-regex/commit/75a657da7af875b2e2724fd6331bf0a4b23d3c9a · WEB
- https://github.com/chalk/ansi-regex/commit/c3c0b3f2736b9c01feec0fef33980c43720dcde8 · WEB
- https://app.snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908 · WEB
- https://github.com/chalk/ansi-regex · PACKAGE
- https://github.com/chalk/ansi-regex/releases/tag/v6.0.1 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 Sep 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 20 Sep 2021)