CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HHigh (7.5). EPSS 3.6% estimated probability of exploitation activity in the next 30 days. Fixed in ansi-regex 3.0.1, 4.1.1, 5.0.1.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hansi-regex (npm): fixed in 6.0.1, 5.0.1, 4.1.1, 3.0.1Explain CVE-2021-3807 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3807?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3807?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3807 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| chalk/ansi-regex | before 6.0.1 |
| chalk/ansi-regex | before 5.0.1 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-93q8-gq69-wqmw | npm | ansi-regex | >=6.0.0 <6.0.1 | 6.0.1 |
| GHSA-93q8-gq69-wqmw | npm | ansi-regex | >=5.0.0 <5.0.1 | 5.0.1 |
| GHSA-93q8-gq69-wqmw | npm | ansi-regex | >=4.0.0 <4.1.1 | 4.1.1 |
| GHSA-93q8-gq69-wqmw | npm | ansi-regex | >=3.0.0 <3.0.1 | 3.0.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | node-ansi-regex | 5.0.1-1 | DEBIAN-CVE-2021-3807 |
| Ubuntu | 18.04:LTS, 20.04:LTS, 22.04:LTS and 4 more | node-ansi-regex | no fix listed | UBUNTU-CVE-2021-3807 |
| Red Hat | enterprise_linux:8::appstream | nodejs, nodejs-docs, nodejs-devel and 3 more | 1:14.18.2-2.module+el8.5.0+13644+8d46dafd | RHSA-2022:0350 |
| Red Hat | enterprise_linux:8::appstream | nodejs, nodejs-docs, nodejs-devel and 3 more | 1:16.13.1-3.module+el8.5.0+13548+45d748af | RHSA-2021:5171 |
| Red Hat | enterprise_linux:8::appstream | nodejs, nodejs-docs, nodejs-devel and 3 more | 1:16.16.0-3.module+el8.6.0+16248+76b0e185 | RHSA-2022:6449 |
| Red Hat | enterprise_linux:8::appstream | nodejs-nodemon | 0:2.0.15-1.module+el8.5.0+13504+a2e74d91 | RHSA-2022:0350 |
| Red Hat | enterprise_linux:8::appstream | nodejs-nodemon | 0:2.0.15-1.module+el8.5.0+13548+45d748af | RHSA-2021:5171 |
| Red Hat | enterprise_linux:8::appstream | nodejs-nodemon | 0:2.0.19-2.module+el8.6.0+16240+7ca51420 | RHSA-2022:6449 |
| Red Hat | enterprise_linux:8::appstream | nodejs-packaging | 0:23-3.module+el8.3.0+6519+9f98ed83 | RHSA-2022:0350 |
| Red Hat | enterprise_linux:8::appstream | nodejs-packaging | 0:25-1.module+el8.5.0+10992+fac5fe06 | RHSA-2021:5171 RHSA-2022:6449 |
| Red Hat | enterprise_linux:8::appstream | npm | 1:6.14.15-1.14.18.2.2.module+el8.5.0+13644+8d46dafd | RHSA-2022:0350 |
| Red Hat | enterprise_linux:8::appstream | npm | 1:8.1.2-1.16.13.1.3.module+el8.5.0+13548+45d748af | RHSA-2021:5171 |
| Red Hat | enterprise_linux:8::appstream | npm | 1:8.11.0-1.16.16.0.3.module+el8.6.0+16248+76b0e185 | RHSA-2022:6449 |
| Red Hat | enterprise_linux:9::appstream | nodejs, nodejs-docs, nodejs-libs and 4 more | 1:16.16.0-1.el9_0 | RHSA-2022:6595 |
| 15 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 more | nodejs-common | 2.0-3.4.1 | SUSE-SU-2022:0704-1 |
| SUSE | Enterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 more | nodejs10 | 10.24.1-150000.1.44.1 | SUSE-SU-2022:1717-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 more | nodejs8 | 8.17.0-3.54.2 | SUSE-SU-2022:0563-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 5 more | bind | 9.16.6-150000.12.65.1 | SUSE-SU-2023:2578-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 more | nodejs12 | 12.22.10-4.29.3 | SUSE-SU-2022:0657-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 more | nodejs14 | 14.19.0-15.27.1 | SUSE-SU-2022:0715-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 6 more | nodejs8 | 8.17.0-10.19.2 | SUSE-SU-2022:0704-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP4, Linux Enterprise Module for Package Hub 15 SP5 | grafana | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP5 | grafana | 9.5.8-150200.3.53.2 | SUSE-RU-2024:0511-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 12 | nodejs10 | 10.24.1-1.46.1 | SUSE-SU-2022:0570-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 12 | nodejs12 | 12.22.10-1.42.2 | SUSE-SU-2022:0531-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 12 | nodejs14 | 14.19.0-6.24.1 | SUSE-SU-2022:0569-1 |
| 65 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.3 | nodejs12 | 12.22.10-4.29.3 | openSUSE-SU-2022:0657-1 |
| openSUSE | Leap 15.3 | nodejs14 | 14.19.0-15.27.1 | openSUSE-SU-2022:0715-1 |
| openSUSE | Leap 15.3 | nodejs8 | 8.17.0-10.19.2 | openSUSE-SU-2022:0704-1 |
| openSUSE | Leap 15.3, Leap 15.4 | nodejs10 | 10.24.1-150000.1.44.1 | SUSE-SU-2022:1717-1 |
| openSUSE | Leap 15.4 | bind | 9.16.6-150000.12.65.1 | SUSE-SU-2023:2578-1 |
| openSUSE | Leap 15.4, Leap 15.5 | dracut-saltboot | 0.1.1681904360.84ef141-150000.1.50.1 | SUSE-SU-2023:2578-1 |
| openSUSE | Leap 15.4, Leap 15.5 | grafana | 9.5.1-150200.3.41.3 | SUSE-SU-2023:2575-1 |
| openSUSE | Leap 15.4, Leap 15.5 | spacecmd | 4.3.21-150000.3.98.1 | SUSE-SU-2023:2578-1 |
| openSUSE | Leap 15.4, Leap 15.5 | wire | 0.5.0-150000.1.12.3 | SUSE-SU-2023:2578-1 |
| openSUSE | Leap 15.5 | golang-github-lusitaniae-apache_exporter | 1.0.0-150000.1.20.1 | SUSE-SU-2024:0487-1 |
| openSUSE | Leap 15.5 | grafana | 9.5.8-150200.3.53.2 | SUSE-RU-2024:0511-1 |
| openSUSE | Leap 15.5 | prometheus-postgres_exporter | 0.10.1-150000.1.17.1 | SUSE-SU-2024:0487-1 |
| 2 more for openSUSE in the JSON and on openSUSE's page. | ||||
| AlmaLinux | 8 | nodejs, nodejs-docs, nodejs-devel and 1 more | 1:14.18.2-2.module_el8.5.0+254+b4526b16 | ALSA-2022:0350 |
| AlmaLinux | 8 | nodejs, nodejs-docs, nodejs-devel and 1 more | 1:14.18.2-2.module_el8.5.0+2618+8d46dafd | ALSA-2022:0350 |
| AlmaLinux | 8 | nodejs, nodejs-docs, nodejs-devel and 1 more | 1:16.13.1-3.module_el8.5.0+246+05401605 | ALSA-2021:5171 |
| AlmaLinux | 8 | nodejs, nodejs-docs, nodejs-devel and 1 more | 1:16.13.1-3.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux | 8 | nodejs-nodemon | 2.0.15-1.module_el8.5.0+2605+45d748af | ALSA-2021:5171 ALSA-2022:0350 |
| 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 ALSA-2022:0350 |
| AlmaLinux | 8 | nodejs-packaging | 23-3.module_el8.4.0+2522+3bd42762 | ALSA-2022:0350 |
| 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+246+05401605 | ALSA-2021:5171 |
| AlmaLinux | 8 | nodejs-packaging | 25-1.module_el8.5.0+2605+45d748af | ALSA-2021:5171 |
| AlmaLinux | 8 | npm | 1:6.14.15-1.14.18.2.2.module_el8.5.0+254+b4526b16 | ALSA-2022:0350 |
| 6 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | nodejs | 1:14.18.2-2.module+el8.5.0+733+de4fee6c | RLSA-2022:0350 |
| 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-nodemon | 0:2.0.15-1.module+el8.5.0+721+4c107270 | RLSA-2021:5171 RLSA-2022:0350 |
| Rocky Linux | 8 | nodejs-nodemon | 0:2.0.19-2.module+el8.6.0+1003+ae94235a | RLSA-2022:6449 |
| Rocky Linux | 8 | nodejs-nodemon | 0:2.0.19-2.module+el8.6.0+1046+80feca58 | RLSA-2022:6449 |
| Rocky Linux | 8 | nodejs-packaging | 0:23-3.module+el8.3.0+100+234774f7 | RLSA-2022:0350 |
| Rocky Linux | 8 | nodejs-packaging | 0:23-3.module+el8.5.0+733+de4fee6c | RLSA-2022:0350 |
| Rocky Linux | 8 | nodejs-packaging | 0:23-3.module+el8.7.0+1071+4bdda2a8 | RLSA-2022:0350 |
| Rocky Linux | 8 | nodejs-packaging | 0:25-1.module+el8.5.0+702+221f14e6 | RLSA-2021:5171 RLSA-2022:6449 |
| Rocky Linux | 8 | nodejs-packaging | 0:25-1.module+el8.6.0+1046+80feca58 | RLSA-2021:5171 RLSA-2022:6449 |
| Rocky Linux | 9 | nodejs-nodemon | 0:2.0.19-1.el9_0 | RLSA-2022:6595 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Moderate.
This flaw requires crafted invalid ANSI escape codes in order to be exploited and only allows for denial of service of applications on the client side, hence the impact has been rated as Moderate.
In Red Hat Virtualization and Red Hat Quay some components use a vulnerable version of ansi-regex. However, all frontend code is executed on the client side. As the maximum impact of this vulnerability is denial of service in the client, the vulnerability is rated Moderate for those products.
OpenShift Container Platform 4 (OCP) ships affected version of ansi-regex in the ose-metering-hadoop container, however the metering operator is deprecated since 4.6[1]. This issue is not currently planned to be addressed in future updates and hence hadoop container has been marked as 'will not fix'.
Advanced Cluster Management for Kubernetes (RHACM) ships the affected version of ansi-regex in several containers, however the impact of this vulnerability is deemed low as it would result in an authenticated slowing down their own user interface.
[1] https://docs.openshift.com/container-platform/4.6/metering/metering-about-metering.html
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | nodejs:16-8050020211206113934.c5368500 | Fixed 2021-12-16 | RHSA-2021:5171 |
| Red Hat Enterprise Linux 8 | nodejs:14-8050020211213115342.c5368500 | Fixed 2022-02-01 | RHSA-2022:0350 |
| Red Hat Enterprise Linux 8 | nodejs:16-8060020220805104227.ad008a3a | Fixed 2022-09-13 | RHSA-2022:6449 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | nodejs:14-8040020211213111158.522a0ee4 | Fixed 2022-01-25 | RHSA-2022:0246 |
| Red Hat Enterprise Linux 9 | nodejs-nodemon-0:2.0.19-1.el9_0 | Fixed 2022-09-20 | RHSA-2022:6595 |
| Red Hat Fuse 7.11 | io.hawt-hawtio-online | Fixed 2022-07-07 | RHSA-2022:5532 |
| Red Hat Fuse 7.11 | io.hawt-project | Fixed 2022-07-07 | RHSA-2022:5532 |
| Red Hat Migration Toolkit for Containers 1.6 | rhmtc/openshift-migration-ui-rhel8:v1.6.5-8 | Fixed 2022-05-31 | RHSA-2022:4814 |
| Red Hat Migration Toolkit for Containers 1.7 | rhmtc/openshift-migration-ui-rhel8:v1.7.2-9 | Fixed 2022-07-01 | RHSA-2022:5483 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-nodejs14-nodejs-0:14.18.2-1.el7 | Fixed 2022-01-06 | RHSA-2022:0041 |
| Migration Toolkit for Virtualization | migration-toolkit-virtualization/mtv-ui-rhel8 | Fix deferred | |
| OpenShift Service Mesh 1 | kiali | Out of support scope | |
| OpenShift Service Mesh 1 | servicemesh-grafana | Out of support scope | |
| OpenShift Service Mesh 1 | servicemesh-prometheus | Out of support scope | |
| OpenShift Service Mesh 2.0 | servicemesh-grafana | Affected | |
| OpenShift Service Mesh 2.0 | servicemesh-prometheus | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/application-ui-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-api-rhel8 | Affected | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-header-rhel8 | Fix deferred | |
| Red Hat Advanced Cluster Management for Kubernetes 2 | rhacm2/console-rhel8 | Affected | |
| 63 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3807.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.