Vulnerability · Published Sep 17, 2021 · Assigned by @huntrdev
CVE-2021-3807Inefficient Regular Expression Complexity in chalk/ansi-regex
High 7.5
In plain English
A high-severity regular-expression denial of service in chalk/ansi-regex from chalk. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.6% (higher than 89% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)7.5High
Exploit odds (30 days)3.6%top 10.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
ansi-regex is vulnerable to Inefficient Regular Expression Complexity
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | nodejs | 1:16.13.1-3.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux:8 | nodejs | 1:14.18.2-2.module_el8.5.0+254+b4526b16 | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs | 1:14.18.2-2.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs | 1:16.13.1-3.module_el8.5.0+246+05401605 | ALSA-2021:5171 |
| AlmaLinux:9 | nodejs | 1:16.16.0-1.el9_0 | ALSA-2022:6595 |
| AlmaLinux:8 | nodejs-devel | 1:14.18.2-2.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs-devel | 1:16.13.1-3.module_el8.5.0+246+05401605 | ALSA-2021:5171 |
| AlmaLinux:8 | nodejs-devel | 1:14.18.2-2.module_el8.5.0+254+b4526b16 | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs-devel | 1:16.13.1-3.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux:8 | nodejs-docs | 1:16.13.1-3.module_el8.5.0+246+05401605 | ALSA-2021:5171 |
| AlmaLinux:8 | nodejs-docs | 1:14.18.2-2.module_el8.5.0+254+b4526b16 | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs-docs | 1:14.18.2-2.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs-docs | 1:16.13.1-3.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux:9 | nodejs-docs | 1:16.16.0-1.el9_0 | ALSA-2022:6595 |
| AlmaLinux:8 | nodejs-full-i18n | 1:14.18.2-2.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs-full-i18n | 1:14.18.2-2.module_el8.5.0+254+b4526b16 | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs-full-i18n | 1:16.13.1-3.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux:8 | nodejs-full-i18n | 1:16.13.1-3.module_el8.5.0+246+05401605 | ALSA-2021:5171 |
| AlmaLinux:9 | nodejs-full-i18n | 1:16.16.0-1.el9_0 | ALSA-2022:6595 |
| AlmaLinux:9 | nodejs-libs | 1:16.16.0-1.el9_0 | ALSA-2022:6595 |
| AlmaLinux:8 | nodejs-nodemon | 2.0.15-1.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs-nodemon | 2.0.15-1.module_el8.6.0+2904+f21ad6f4 | ALSA-2021:5171 |
| AlmaLinux:8 | nodejs-nodemon | 2.0.15-1.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux:8 | nodejs-nodemon | 2.0.15-1.module_el8.6.0+2904+f21ad6f4 | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs-nodemon | 2.0.15-1.module_el8.5.0+2605+45d748af | ALSA-2022:0350 |
| AlmaLinux:9 | nodejs-nodemon | 2.0.19-1.el9_0 | ALSA-2022:6595 |
| AlmaLinux:8 | nodejs-packaging | 23-3.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux:8 | nodejs-packaging | 25-1.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux:8 | nodejs-packaging | 25-1.module_el8.5.0+246+05401605 | ALSA-2021:5171 |
| AlmaLinux:8 | nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 | ALSA-2022:0350 |
| AlmaLinux:8 | npm | 1:8.1.2-1.16.13.1.3.module_el8.5.0+246+05401605 | ALSA-2021:5171 |
| AlmaLinux:8 | npm | 1:6.14.15-1.14.18.2.2.module_el8.5.0+254+b4526b16 | ALSA-2022:0350 |
| AlmaLinux:8 | npm | 1:6.14.15-1.14.18.2.2.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux:8 | npm | 1:8.1.2-1.16.13.1.3.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux:9 | npm | 1:8.11.0-1.16.16.0.1.el9_0 | ALSA-2022:6595 |
| Debian:12 | node-ansi-regex | 5.0.1-1 | DEBIAN-CVE-2021-3807 |
| Debian:13 | node-ansi-regex | 5.0.1-1 | DEBIAN-CVE-2021-3807 |
| Debian:14 | node-ansi-regex | 5.0.1-1 | DEBIAN-CVE-2021-3807 |
| Rocky Linux:8 | nodejs | 1:16.13.1-3.module+el8.5.0+721+4c107270 | RLSA-2021:5171 |
| Rocky Linux:8 | nodejs | 1:16.16.0-3.module+el8.6.0+1003+ae94235a | RLSA-2022:6449 |
| Rocky Linux:8 | nodejs | 1:14.18.2-2.module+el8.5.0+733+de4fee6c | RLSA-2022:0350 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.19-2.module+el8.6.0+1046+80feca58 | RLSA-2022:6449 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.15-1.module+el8.5.0+721+4c107270 | RLSA-2021:5171 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.15-1.module+el8.5.0+721+4c107270 | RLSA-2022:0350 |
| Rocky Linux:8 | nodejs-nodemon | 0:2.0.19-2.module+el8.6.0+1003+ae94235a | RLSA-2022:6449 |
| Rocky Linux:9 | nodejs-nodemon | 0:2.0.19-1.el9_0 | RLSA-2022:6595 |
| Rocky Linux:8 | nodejs-packaging | 0:23-3.module+el8.5.0+733+de4fee6c | RLSA-2022:0350 |
| Rocky Linux:8 | nodejs-packaging | 0:25-1.module+el8.6.0+1046+80feca58 | RLSA-2021:5171 |
| Rocky Linux:8 | nodejs-packaging | 0:25-1.module+el8.5.0+702+221f14e6 | RLSA-2021:5171 |
| Rocky Linux:8 | nodejs-packaging | 0:23-3.module+el8.7.0+1071+4bdda2a8 | RLSA-2022:0350 |
| Rocky Linux:8 | nodejs-packaging | 0:23-3.module+el8.3.0+100+234774f7 | RLSA-2022:0350 |
| Rocky Linux:8 | nodejs-packaging | 0:25-1.module+el8.6.0+1046+80feca58 | RLSA-2022:6449 |
| Rocky Linux:8 | nodejs-packaging | 0:25-1.module+el8.5.0+702+221f14e6 | RLSA-2022:6449 |
| Ubuntu:22.04:LTS | node-ansi-regex | no fix listed | UBUNTU-CVE-2021-3807 |
| Ubuntu:24.04:LTS | node-ansi-regex | no fix listed | UBUNTU-CVE-2021-3807 |
| Ubuntu:25.10 | node-ansi-regex | no fix listed | UBUNTU-CVE-2021-3807 |
| Ubuntu:26.04:LTS | node-ansi-regex | no fix listed | UBUNTU-CVE-2021-3807 |
| Ubuntu:26.10 | node-ansi-regex | no fix listed | UBUNTU-CVE-2021-3807 |
| npm | ansi-regex | 6.0.1 | GHSA-93q8-gq69-wqmw |
| npm | ansi-regex | 5.0.1 | GHSA-93q8-gq69-wqmw |
| npm | ansi-regex | 4.1.1 | GHSA-93q8-gq69-wqmw |
| npm | ansi-regex | 3.0.1 | GHSA-93q8-gq69-wqmw |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| chalk | chalk/ansi-regex | unspecified – before 6.0.1unspecified – before 5.0.1 |
Weakness: CWE-1333 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H