Inefficient Regular Expression Complexity in chalk/ansi-regex
Summary
| CVE | CVE-2021-3807 |
|---|---|
| State | PUBLISHED |
| Assigner | @huntrdev |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-09-17 07:15:09 UTC |
| Updated | 2026-10-08 22:17:11 UTC |
| Description | ansi-regex is vulnerable to Inefficient Regular Expression Complexity |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.035520000 probability, percentile 0.892530000 (date 2026-10-22)
Problem Types: CWE-1333 | CWE-1333 CWE-1333 Inefficient Regular Expression Complexity
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.0 | [email protected] | Secondary | 7.5 | HIGH | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.0 | CNA | DECLARED | 7.5 | HIGH | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 2.0 | [email protected] | Primary | 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v3.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
LowAuthentication
NoneConfidentiality
NoneIntegrity
NoneAvailability
CompleteAV:N/AC:L/Au:N/C:N/I:N/A:C
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Ansi-regex Project | Ansi-regex | All | All | All | All |
| Application | Ansi-regex Project | Ansi-regex | 3.0.0 | All | All | All |
| Application | Ansi-regex Project | Ansi-regex | 5.0.0 | All | All | All |
| Application | Ansi-regex Project | Ansi-regex | 6.0.0 | All | All | All |
| Application | Oracle | Communications Cloud Native Core Policy | 1.15.0 | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Chalk | Chalk/ansi-regex | affected unspecified 6.0.1 custom | Not specified |
| CNA | Chalk | Chalk/ansi-regex | affected unspecified 5.0.1 custom | Not specified |
| CNA | Chalk | Chalk/ansi-regex | unaffected 5.0.1 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Oracle Critical Patch Update Advisory - April 2022 | af854a3a-2127-422b-91ae-364da2661108 | www.oracle.com | Patch, Third Party Advisory |
| Fix potential ReDoS (#37) · chalk/ansi-regex@8d1d7cd · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch, Third Party Advisory |
| huntr: Disclose & Fix Security Vulnerabilities in Open Source | af854a3a-2127-422b-91ae-364da2661108 | huntr.dev | Exploit, Issue Tracking, Patch, Third Party Advisory |
| CVE-2021-3807 Node.js Vulnerability in NetApp Products | NetApp Product Security | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 159554 Oracle Enterprise Linux Security Update for nodejs:16 (ELSA-2021-5171)
- 159622 Oracle Enterprise Linux Security Update for nodejs:14 (ELSA-2022-0350)
- 160094 Oracle Enterprise Linux Security Update for nodejs:16 (ELSA-2022-6449)
- 160111 Oracle Enterprise Linux Security Update for nodejs and nodejs-nodemon (ELSA-2022-6595)
- 179932 Debian Security Update for node-ansi-regex (CVE-2021-3807)
- 239970 Red Hat Update for nodejs:16 security (RHSA-2021:5171)
- 239986 Red Hat Update for rh-nodejs14-nodejs and rh-nodejs14-nodejs-nodemon (RHSA-2022:0041)
- 240037 Red Hat Update for nodejs:14 security (RHSA-2022:0246)
- 240051 Red Hat Update for nodejs:14 security (RHSA-2022:0350)
- 240660 Red Hat Update for nodejs:16 (RHSA-2022:6449)
- 240676 Red Hat Update for nodejs and nodejs-nodemon (RHSA-2022:6595)
- 377422 Alibaba Cloud Linux Security Update for nodejs:14 (ALINUX3-SA-2022:0014)
- 751759 SUSE Enterprise Linux Security Update for nodejs8 (SUSE-SU-2022:0563-1)
- 751773 SUSE Enterprise Linux Security Update for nodejs12 (SUSE-SU-2022:0657-1)
- 751781 OpenSUSE Security Update for nodejs12 (openSUSE-SU-2022:0657-1)
- 751783 SUSE Enterprise Linux Security Update for nodejs8 (SUSE-SU-2022:0704-1)
- 751801 SUSE Enterprise Linux Security Update for nodejs14 (SUSE-SU-2022:0715-1)
- 751820 OpenSUSE Security Update for nodejs14 (openSUSE-SU-2022:0715-1)
- 751824 OpenSUSE Security Update for nodejs8 (openSUSE-SU-2022:0704-1)
- 751826 OpenSUSE Security Update for nodejs8 (openSUSE-SU-22022:20000-2)
- 752142 SUSE Enterprise Linux Security Update for nodejs10 (SUSE-SU-2022:1717-1)
- 754116 SUSE Enterprise Linux Security Update for SUSE Manager Client Tools (SUSE-SU-2023:2578-1)
- 755764 SUSE Enterprise Linux Security Update for SUSE Manager Client Tools (SUSE-SU-2024:0487-1)
- 940355 AlmaLinux Security Update for nodejs:16 (ALSA-2021:5171)
- 940448 AlmaLinux Security Update for nodejs:14 (ALSA-2022:0350)
- 940678 AlmaLinux Security Update for nodejs and nodejs-nodemon (ALSA-2022:6595)
- 960322 Rocky Linux Security Update for nodejs:16 (RLSA-2021:5171)
- 960531 Rocky Linux Security Update for nodejs and nodejs-nodemon (RLSA-2022:6595)
- 960863 Rocky Linux Security Update for nodejs:14 (RLSA-2022:0350)
- 980499 Nodejs (npm) Security Update for ansi-regex (GHSA-93q8-gq69-wqmw)