Vulnerability · Published Mar 3, 2021 · Assigned by hackerone

CVE-2021-22884

High 7.5

In plain English

A high-severity security flaw in Node from NodeJS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 36.8% (higher than 99% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)36.8%top 1.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

Node.js before 10.24.0, 12.21.0, 14.16.0, and 15.10.0 is vulnerable to DNS rebinding attacks as the whitelist includes “localhost6”. When “localhost6” is not present in /etc/hosts, it is just an ordinary domain that is resolved via DNS, i.e., over network. If the attacker controls the victim's DNS server or can spoof its responses, the DNS rebinding protection can be bypassed by using the “localhost6” domain. As long as the attacker uses the “localhost6” domain, they can still apply the attack described in CVE-2018-7160.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8nodejs1:10.24.0-1.module_el8.5.0+81+7dbe79d3ALSA-2021:0735
AlmaLinux:8nodejs1:10.24.0-1.module_el8.4.0+2224+b07ac28eALSA-2021:0735
AlmaLinux:8nodejs1:10.24.0-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux:8nodejs-devel1:10.24.0-1.module_el8.5.0+81+7dbe79d3ALSA-2021:0735
AlmaLinux:8nodejs-devel1:10.24.0-1.module_el8.4.0+2224+b07ac28eALSA-2021:0735
AlmaLinux:8nodejs-devel1:10.24.0-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux:8nodejs-docs1:10.24.0-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux:8nodejs-full-i18n1:10.24.0-1.module_el8.4.0+2224+b07ac28eALSA-2021:0735
AlmaLinux:8nodejs-full-i18n1:10.24.0-1.module_el8.5.0+81+7dbe79d3ALSA-2021:0735
AlmaLinux:8nodejs-full-i18n1:10.24.0-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux:8nodejs-nodemon2.0.3-1.module_el8.4.0+2521+c668cc9fALSA-2021:0734
AlmaLinux:8nodejs-nodemon1.18.3-1.module_el8.3.0+2023+d2377ea3ALSA-2021:0735
AlmaLinux:8nodejs-nodemon1.18.3-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux:8nodejs-nodemon2.0.3-1.module_el8.4.0+2521+c668cc9fALSA-2021:0744
AlmaLinux:8nodejs-packaging23-3.module_el8.4.0+2522+3bd42762ALSA-2021:0744
AlmaLinux:8nodejs-packaging23-3.module_el8.5.0+254+b4526b16ALSA-2021:0744
AlmaLinux:8nodejs-packaging17-3.module_el8.4.0+2224+b07ac28eALSA-2021:0735
AlmaLinux:8nodejs-packaging17-3.module_el8.4.0+2521+c668cc9fALSA-2021:0735
AlmaLinux:8nodejs-packaging17-3.module_el8.3.0+2023+d2377ea3ALSA-2021:0735
AlmaLinux:8nodejs-packaging17-3.module_el8.3.0+2023+d2377ea3ALSA-2021:0734
AlmaLinux:8nodejs-packaging17-3.module_el8.4.0+2521+c668cc9fALSA-2021:0734
AlmaLinux:8nodejs-packaging17-3.module_el8.4.0+2224+b07ac28eALSA-2021:0734
AlmaLinux:8npm1:6.14.11-1.10.24.0.1.module_el8.5.0+81+7dbe79d3ALSA-2021:0735
AlmaLinux:8npm1:6.14.11-1.10.24.0.1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux:8npm1:6.14.11-1.10.24.0.1.module_el8.4.0+2224+b07ac28eALSA-2021:0735
Alpine:v3.20nodejs14.16.0-r0ALPINE-CVE-2021-22884
Alpine:v3.21nodejs14.16.0-r0ALPINE-CVE-2021-22884
Alpine:v3.22nodejs14.16.0-r0ALPINE-CVE-2021-22884
Alpine:v3.23nodejs14.16.0-r0ALPINE-CVE-2021-22884
Alpine:v3.24nodejs14.16.0-r0ALPINE-CVE-2021-22884
Alpine:v3.20nodejs-current15.10.0-r0ALPINE-CVE-2021-22884
Alpine:v3.21nodejs-current15.10.0-r0ALPINE-CVE-2021-22884
Alpine:v3.22nodejs-current15.10.0-r0ALPINE-CVE-2021-22884
Alpine:v3.23nodejs-current15.10.0-r0ALPINE-CVE-2021-22884
Alpine:v3.24nodejs-current15.10.0-r0ALPINE-CVE-2021-22884
Debian:12nodejs12.21.0~dfsg-1DEBIAN-CVE-2021-22884
Debian:13nodejs12.21.0~dfsg-1DEBIAN-CVE-2021-22884
Debian:14nodejs12.21.0~dfsg-1DEBIAN-CVE-2021-22884
Rocky Linux:8nodejs1:10.24.0-1.module+el8.3.0+101+f84c7154RLSA-2021:0735
Rocky Linux:8nodejs1:12.21.0-1.module+el8.3.0+99+3663d81cRLSA-2021:0734
Rocky Linux:8nodejs1:14.16.0-2.module+el8.3.0+100+234774f7RLSA-2021:0744
Rocky Linux:8nodejs-nodemon0:2.0.3-1.module+el8.6.0+982+9fdca2d4RLSA-2021:0734
Rocky Linux:8nodejs-nodemon0:2.0.3-1.module+el8.6.0+982+9fdca2d4RLSA-2021:0744
Rocky Linux:8nodejs-nodemon0:2.0.3-1.module+el8.3.0+100+234774f7RLSA-2021:0744
Rocky Linux:8nodejs-nodemon0:2.0.3-1.module+el8.4.0+638+5344c6f7RLSA-2021:0744
Rocky Linux:8nodejs-nodemon0:2.0.3-1.module+el8.4.0+638+5344c6f7RLSA-2021:0734
Rocky Linux:8nodejs-nodemon0:2.0.3-1.module+el8.3.0+100+234774f7RLSA-2021:0734
Rocky Linux:8nodejs-nodemon0:1.18.3-1.module+el8.3.0+101+f84c7154RLSA-2021:0735
Rocky Linux:8nodejs-packaging0:17-3.module+el8.3.0+101+f84c7154RLSA-2021:0735
Rocky Linux:8nodejs-packaging0:17-3.module+el8.3.0+101+f84c7154RLSA-2021:0734
Rocky Linux:8nodejs-packaging0:23-3.module+el8.5.0+733+de4fee6cRLSA-2021:0744
Rocky Linux:8nodejs-packaging0:23-3.module+el8.3.0+100+234774f7RLSA-2021:0744
Rocky Linux:8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2021:0744

Affected products (as reported)

VendorProductVersions
NodeJS Node 4.0 – before 4.*5.0 – before 5.*6.0 – before 6.*7.0 – before 7.*8.0 – before 8.*9.0 – before 9.*10.0 – before 10.24.011.0 – before 11.*

Weakness: CWE-350

References