CVE-2021-3807 json
Inefficient Regular Expression Complexity in chalk/ansi-regex
published 2021-09-17 5 y ago modified 2026-10-08 31 d ago also GHSA-93q8-gq69-wqmw , EUVD-2021-2021
- cvss
- 7.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.6%
- EPSS 3.6% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
ansi-regex is vulnerable to Inefficient Regular Expression Complexity
Patch / fix
- npm ansi-regex 3.0.1, 4.1.1, 5.0.1, 6.0.1
- chalk chalk/ansi-regex 5.0.1, 6.0.1
- node-ansi-regex Debian 14, Debian 13, Debian 12 5.0.1-1
debian advisories DEBIAN-CVE-2021-3807
- npm RHEL 8 1:8.11.0-1.16.16.0.3.module+el8.6.0+16248+76b0e185
- nodejs RHEL 8 1:16.16.0-3.module+el8.6.0+16248+76b0e185
- nodejs-nodemon RHEL 8 2.0.19-2.module+el8.6.0+16240+7ca51420
- nodejs-full-i18n RHEL 8 1:16.16.0-3.module+el8.6.0+16248+76b0e185
- nodejs-packaging RHEL 8 25-1.module+el8.5.0+10992+fac5fe06
- npm RHEL 8 1:6.14.15-1.14.18.2.2.module+el8.5.0+13644+8d46dafd
- nodejs RHEL 8 1:14.18.2-2.module+el8.5.0+13644+8d46dafd
- nodejs-nodemon RHEL 8 2.0.15-1.module+el8.5.0+13504+a2e74d91
red hat advisories RHSA-2022:6449RHSA-2022:0350RHSA-2021:5171RHSA-2022:0246RHSA-2022:0041RHSA-2022:5555
- grafana SLE Module for Package Hub 15 SP5, openSUSE Leap 15.5 9.5.8-150200.3.53.2
- grafana Manager Client Tools 15 9.5.8-150000.1.60.2
- spacecmd openSUSE Leap 15.5, Manager Client Tools 15 4.3.26-150000.3.113.1
- mgr-daemon Manager Client Tools 15 4.3.8-150000.1.44.1
- spacewalk-client-tools Manager Client Tools 15 4.3.18-150000.3.86.2
- prometheus-postgres_exporter openSUSE Leap 15.5, Manager Client Tools 15 0.10.1-150000.1.17.1
- uyuni-proxy-systemd-services Manager Client Tools for SLE Micro 5, Manager Client Tools 15 4.3.10-150000.1.15.1
- golang-github-prometheus-prometheus Manager Client Tools 15 2.45.0-150000.3.53.1
suse advisories SUSE-RU-2024:0511-1SUSE-SU-2024:0487-1SUSE-SU-2024:0486-1SUSE-SU-2024:0196-1SUSE-SU-2024:0191-1SUSE-SU-2023:2579-1
- grafana openSUSE Tumbleweed 9.3.6-1.1
- nodejs14 openSUSE Leap 15.3 14.19.0-15.27.1
- nodejs8 openSUSE Leap 15.3 8.17.0-10.19.2
- nodejs12 openSUSE Leap 15.3 12.22.10-4.29.3
opensuse advisories openSUSE-SU-2024:12723-1openSUSE-SU-2022:0715-1openSUSE-SU-2022:0704-1openSUSE-SU-2022:0657-1
- nodejs AlmaLinux 9 1:16.16.0-1.el9_0
- nodejs-nodemon AlmaLinux 9 2.0.19-1.el9_0
- npm AlmaLinux 9 1:8.11.0-1.16.16.0.1.el9_0
- nodejs-libs AlmaLinux 9 1:16.16.0-1.el9_0
- nodejs-full-i18n AlmaLinux 9 1:16.16.0-1.el9_0
- npm AlmaLinux 8 1:6.14.15-1.14.18.2.2.module_el8.5.0+2618+8d46dafd
- npm AlmaLinux 8 1:6.14.15-1.14.18.2.2.module_el8.5.0+254+b4526b16
- nodejs AlmaLinux 8 1:14.18.2-2.module_el8.5.0+2618+8d46dafd
almalinux advisories ALSA-2022:6595ALSA-2022:0350ALSA-2021:5171
- nodejs-nodemon Rocky Linux 9 2.0.19-1.el9_0
- nodejs Rocky Linux 8 1:16.16.0-3.module+el8.6.0+1003+ae94235a
- nodejs-nodemon Rocky Linux 8 2.0.19-2.module+el8.6.0+1046+80feca58
- nodejs-nodemon Rocky Linux 8 2.0.19-2.module+el8.6.0+1003+ae94235a
- nodejs-packaging Rocky Linux 8 25-1.module+el8.6.0+1046+80feca58
- nodejs-packaging Rocky Linux 8 25-1.module+el8.5.0+702+221f14e6
- nodejs Rocky Linux 8 1:14.18.2-2.module+el8.5.0+733+de4fee6c
- nodejs-nodemon Rocky Linux 8 2.0.15-1.module+el8.5.0+721+4c107270
rocky linux advisories RLSA-2022:6595RLSA-2022:6449RLSA-2022:0350RLSA-2021:5171
- github.com/chalk/ansi-regex@8d1d7cd commit
- github.com/chalk/ansi-regex@419250f commit
- github.com/chalk/ansi-regex@75a657d commit
- github.com/chalk/ansi-regex@c3c0b3f commit
- github.com/chalk/ansi-regex/releases/tag/v6.0.1 release
- huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994 advisory
- oracle.com/security-alerts/cpuapr2022.html advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3807 updated cvss 7.5
nodejs-ansi-regex: Regular expression denial of service (ReDoS) matching ANSI escape codes
-
Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-ui-rhel8affected: no fix available “Fix deferred”
-
Red Hat OpenShift Service Mesh 1 kiali, servicemesh-grafana, servicemesh-prometheus, servicemesh-grafana-prometheusaffected: no fix planned “Out of support scope”
-
Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-prometheus, servicemesh-grafana-prometheusaffected: no fix available
-
Red Hat A-MQ Online io.enmasse-enmasseaffected: no fix planned “Out of support scope”
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/grc-ui-rhel8, rhacm2/console-rhel8, rhacm2/console-ui-rhel8, rhacm2/grc-ui-api-rhel8, rhacm2/search-api-rhel8, rhacm2/console-api-rhel8, +4 moreaffected: no fix available “Fix deferred”
-
Red Hat build of Apicurio Registry 2 io.apicurio-apicurio-registryaffected: no fix available
-
Red Hat Ceph Storage 3 grafana Red Hat Ceph Storage 4 ceph, librbd1, librgw2, rbd-nbd, ceph-mds, ceph-mgr, +29 moreaffected: no fix planned “Out of support scope”
-
Red Hat Ceph Storage 5 ceph, cephadm, librbd1, librgw2, rbd-nbd, ceph-mds, +33 more Red Hat Enterprise Linux 8 npm, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n, nodejs-packaging, +1 more Red Hat Enterprise Linux 9 npm, nodejs, nodejs-libs, nodejs-full-i18naffected: no fix available
show 17 moreshow fewer
-
Red Hat JBoss Data Grid 7 org.jboss.hal-hal-parent, org.infinispan-infinispan-parent, org.infinispan-infinispan-management-console Red Hat JBoss Enterprise Application Platform 6 org.keycloak-keycloak-parent Red Hat OpenShift Container Platform 3.11 kibanaaffected: no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 4 openshift4/ose-console, openshift4/ose-grafana, openshift4/ose-thanos-rhel9, openshift4/ose-metering-hadoop, openshift4/ose-prometheus-rhel9affected: no fix planned “Will not fix”
-
Red Hat Openshift Container Storage 4 ocs4/mcg-core-rhel8affected: no fix planned “Out of support scope”
-
Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8 Red Hat Quay 3 quay/quay-rhel8affected: no fix planned “Will not fix”
-
Red Hat Satellite 6 tfm-rubygem-rablaffected: no fix available “Fix deferred”
-
Red Hat Software Collections rh-nodejs12-npm, rh-nodejs12-nodejs, rh-nodejs12-nodejs-nodemonaffected: no fix planned “Out of support scope”
-
Red Hat Virtualization 4 cockpit-ovirt-uiplugin, cockpit-ovirt-dashboardaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux AppStream (v. 8) nodejs 14.18.2-2.module+el8.5.0+13644+8d46dafd, nodejs 16.16.0-3.module+el8.6.0+16248+76b0e185, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-packaging 25-1.module+el8.5.0+10992+fac5fe06, npm 8.11.0-1.16.16.0.3.module+el8.6.0+16248+76b0e185, nodejs-nodemon 2.0.15-1.module+el8.5.0+13504+a2e74d91, +5 morefixed: vendor fix RHSA-2022:0350
-
Red Hat Enterprise Linux AppStream (v. 9) nodejs-nodemon 2.0.19-1.el9_0fixed: vendor fix RHSA-2022:6595
-
Red Hat Enterprise Linux AppStream EUS (v.8.4) nodejs 14.18.2-2.module+el8.4.0+13643+6c0ebf22, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-nodemon 2.0.15-1.module+el8.4.0+13503+fc29810b, npm 6.14.15-1.14.18.2.2.module+el8.4.0+13643+6c0ebf22, nodejs-full-i18n 14.18.2-2.module+el8.4.0+13643+6c0ebf22fixed: vendor fix RHSA-2022:0246
-
Red Hat Fuse 7.11fixed: vendor fix RHSA-2022:5532
-
Red Hat Migration Toolkit 1.6 rhmtc/openshift-migration-ui-rhel8 v1.6.5-8fixed: vendor fix RHSA-2022:4814
-
Red Hat Migration Toolkit 1.7 rhmtc/openshift-migration-ui-rhel8 v1.7.2-9fixed: vendor fix RHSA-2022:5483
-
Red Hat Software Collections for RHEL Workstation(v. 7) rh-nodejs14-nodejs 14.18.2-1.el7, rh-nodejs14-npm 6.14.15-14.18.2.1.el7, rh-nodejs14-nodejs-nodemon 2.0.3-6.el7 Red Hat Software Collections for RHEL(v. 7) rh-nodejs14-nodejs 14.18.2-1.el7, rh-nodejs14-npm 6.14.15-14.18.2.1.el7, rh-nodejs14-nodejs-nodemon 2.0.3-6.el7fixed: vendor fix RHSA-2022:0041
-
Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 ovirt-web-ui 1.9.0-1.el8ev, ovirt-engine-ui-extensions 1.3.3-1.el8evfixed: vendor fix RHSA-2022:4711
-
Red Hat RHODF 4.13 for RHEL 9 odf4/mcg-core-rhel9 v4.13.0-41fixed: vendor fix RHSA-2023:3742
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-ui-rhel8, rhacm2/kui-web-terminal-rhel8 Red Hat Ansible Automation Platform 1.2 ansi-regex Red Hat Data Grid 8 org.infinispan-infinispan-console, org.infinispan-infinispan-js-client Red Hat Decision Manager 7 org.uberfire-uberfire-parent, org.kie.workbench-kie-wb-common, org.drools-droolsjbpm-integration, org.optaweb.vehiclerouting-optaweb-vehicle-routing, org.optaweb.employeerostering-optaweb-employee-rostering Red Hat Enterprise Linux AppStream (v. 8) nodejs 16.13.1-3.module+el8.5.0+13548+45d748af, nodejs-packaging 25-1.module+el8.5.0+10992+fac5fe06, npm 8.1.2-1.16.13.1.3.module+el8.5.0+13548+45d748af, nodejs-full-i18n 16.13.1-3.module+el8.5.0+13548+45d748af Red Hat Enterprise Linux AppStream (v. 9) nodejs 16.16.0-1.el9_0, nodejs-libs 16.16.0-1.el9_0, npm 8.11.0-1.16.16.0.1.el9_0, nodejs-full-i18n 16.16.0-1.el9_0not affected: vulnerable code not present
+3 more productsfewer
Red Hat Fuse 7 io.apicurio-apicurito, io.syndesis-syndesis-ui Red Hat Integration Camel K 1 io.apicurio-apicurio-registry Red Hat Integration Camel Quarkus 1 io.apicurio-apicurio-registry
8 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 31 d ago
Exploit prediction
3.55% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.dev https://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | 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 |
6.0.1 5.0.1 4.1.1 3.0.1 |
Affected products
- chalk chalk/ansi-regex
Classification
References
-
github.com
/chalk/ansi-regex/commit/8d1d7cdb586269882c4bdc1b7325d0c58c8f76f9
web, patch, third-party-advisory
-
huntr.dev
/bounties/5b3cf33b-ede0-4398-9974-800876dfd994
web, exploit, issue-tracking, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuapr2022.html
web, patch, third-party-advisory
-
github.com
/chalk/ansi-regex/commit/419250fa510bf31b4cc672e76537a64f9332e1f1
web
-
github.com
/chalk/ansi-regex/commit/75a657da7af875b2e2724fd6331bf0a4b23d3c9a
web
-
github.com
/chalk/ansi-regex/commit/c3c0b3f2736b9c01feec0fef33980c43720dcde8
web
-
security.netapp.com
/advisory/ntap-20221014-0002/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-3807
advisory
-
github.com
/chalk/ansi-regex/issues/38#issuecomment-924086311
web
-
github.com
/chalk/ansi-regex/issues/38#issuecomment-925924774
web
-
app.snyk.io
/vuln/SNYK-JS-ANSIREGEX-1583908
web
-
github.com
/chalk/ansi-regex
package
-
github.com
/chalk/ansi-regex/releases/tag/v6.0.1
web
-
security.netapp.com
/advisory/ntap-20221014-0002
web
Sources
- CVE List CVE-2021-3807
- GitHub Advisory GHSA-93q8-gq69-wqmw
- NVD CVE-2021-3807
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.