CVE-2021-3807
Inefficient Regular Expression Complexity in chalk/ansi-regex
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
ansi-regex is vulnerable to Inefficient Regular Expression Complexity
ansi-regex es vulnerable a una Complejidad de Expresiones Regulares Ineficientes
A regular expression denial of service (ReDoS) vulnerability was found in nodejs-ansi-regex. This could possibly cause an application using ansi-regex to use an excessive amount of CPU time when matching crafted ANSI escape codes.
An update that fixes 9 vulnerabilities is now available. This update for nodejs10 fixes the following issues. Fixed ReDoS via splitDeviceRe, splitTailRe and splitPathRe. Fixed insufficient symlink protection in node-tar allowing arbitrary file creation and overwrite. Fixed insufficient absolute path sanitization in node-tar allowing arbitrary file creation and overwrite. Fixed improper controlled modification of object prototype attributes in json-schema. Fixed regular expression denial of service matching ANSI escape codes in node-ansi-regex. Fixed prototype pollution via console.table. Fixed prototype pollution in npm dependency. Fixed insuficient sanitation in npm dependency. Fixed passing of cookie data and sensitive headers to different hostnames in node-fetch-npm.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2021-09-16 CVE Reserved
- 2021-09-17 CVE Published
- 2024-08-03 CVE Updated
- 2024-08-03 First Exploit
- 2025-08-13 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-400: Uncontrolled Resource Consumption
- CWE-1333: Inefficient Regular Expression Complexity
CAPEC
References (6)
URL | Tag | Source |
---|---|---|
https://security.netapp.com/advisory/ntap-20221014-0002 | Third Party Advisory |
|
URL | Date | SRC |
---|---|---|
https://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994 | 2024-08-03 |
URL | Date | SRC |
---|---|---|
https://github.com/chalk/ansi-regex/commit/8d1d7cdb586269882c4bdc1b7325d0c58c8f76f9 | 2023-07-10 | |
https://www.oracle.com/security-alerts/cpuapr2022.html | 2023-07-10 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2021-3807 | 2023-06-21 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2007557 | 2023-06-21 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Ansi-regex Project Search vendor "Ansi-regex Project" | Ansi-regex Search vendor "Ansi-regex Project" for product "Ansi-regex" | >= 4.0.0 < 4.1.1 Search vendor "Ansi-regex Project" for product "Ansi-regex" and version " >= 4.0.0 < 4.1.1" | node.js |
Affected
| ||||||
Ansi-regex Project Search vendor "Ansi-regex Project" | Ansi-regex Search vendor "Ansi-regex Project" for product "Ansi-regex" | 3.0.0 Search vendor "Ansi-regex Project" for product "Ansi-regex" and version "3.0.0" | node.js |
Affected
| ||||||
Ansi-regex Project Search vendor "Ansi-regex Project" | Ansi-regex Search vendor "Ansi-regex Project" for product "Ansi-regex" | 5.0.0 Search vendor "Ansi-regex Project" for product "Ansi-regex" and version "5.0.0" | node.js |
Affected
| ||||||
Ansi-regex Project Search vendor "Ansi-regex Project" | Ansi-regex Search vendor "Ansi-regex Project" for product "Ansi-regex" | 6.0.0 Search vendor "Ansi-regex Project" for product "Ansi-regex" and version "6.0.0" | node.js |
Affected
| ||||||
Oracle Search vendor "Oracle" | Communications Cloud Native Core Policy Search vendor "Oracle" for product "Communications Cloud Native Core Policy" | 1.15.0 Search vendor "Oracle" for product "Communications Cloud Native Core Policy" and version "1.15.0" | - |
Affected
|