CVEfocus › CVE database › CVE-2021-22884

CVE-2021-22884

EPSS 36.8% (higher than 99% of CVEs)Published 2021-03-03Updated 2025-04-30Assigner: hackerone

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.

CWE-350

What to do

Likely to be exploited: EPSS gives a 37% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

47Fixed
2Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04nodejsFixed10.19.0~dfsg-3ubuntu1.2UBUNTU-CVE-2021-22884
Ubuntu 18.04nodejsFix pending8.10.0~dfsg-2ubuntu0.4+esm3 (Ubuntu Pro)UBUNTU-CVE-2021-22884
Ubuntu 16.04nodejsFix pending
Debian 14nodejsFixed12.21.0~dfsg-1DEBIAN-CVE-2021-22884
Debian 13nodejsFixed12.21.0~dfsg-1DEBIAN-CVE-2021-22884
Debian 12nodejsFixed12.21.0~dfsg-1DEBIAN-CVE-2021-22884
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Enterprise Linux 9nodejs-docsNot affected
Red Hat Enterprise Linux 9nodejs-full-i18nNot affected
Red Hat Enterprise Linux 9nodejs-libsNot affected
Red Hat Enterprise Linux 9npmNot affected
Red Hat Enterprise Linux 8nodejsFixed1:14.16.0-2.module+el8.3.0+10180+b92e1eb6RHSA-2021:0735
Red Hat Enterprise Linux 8nodejs-develFixed1:14.16.0-2.module+el8.3.0+10180+b92e1eb6RHSA-2021:0735
Red Hat Enterprise Linux 8nodejs-docsFixed1:12.21.0-1.module+el8.3.0+10191+34fb5a07RHSA-2021:0735
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:12.21.0-1.module+el8.3.0+10191+34fb5a07RHSA-2021:0744
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:2.0.3-1.module+el8.3.0+6519+9f98ed83RHSA-2021:0735
Red Hat Enterprise Linux 8nodejs-packagingFixed0:17-3.module+el8+2873+aa7dfd9aRHSA-2021:0744
Red Hat Enterprise Linux 8npmFixed1:6.14.11-1.14.16.0.2.module+el8.3.0+10180+b92e1eb6RHSA-2021:0735
AlmaLinux 8nodejsFixed1:10.24.0-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux 8nodejs-develFixed1:10.24.0-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux 8nodejs-docsFixed1:10.24.0-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux 8nodejs-full-i18nFixed1:10.24.0-1.module_el8.3.0+2047+b07ac28eALSA-2021:0735
AlmaLinux 8nodejs-nodemonFixed2.0.3-1.module_el8.4.0+2521+c668cc9fALSA-2021:0734
AlmaLinux 8nodejs-packagingFixed17-3.module_el8.4.0+2224+b07ac28eALSA-2021:0744
AlmaLinux 8npmFixed1:6.14.11-1.10.24.0.1.module_el8.4.0+2224+b07ac28eALSA-2021:0735
Rocky Linux 8nodejsFixed1:10.24.0-1.module+el8.3.0+101+f84c7154RLSA-2021:0734
Rocky Linux 8nodejs-nodemonFixed0:2.0.3-1.module+el8.6.0+982+9fdca2d4RLSA-2021:0734
Rocky Linux 8nodejs-packagingFixed0:23-3.module+el8.5.0+733+de4fee6cRLSA-2021:0734
Alpine Linux 3.24nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.24nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.23nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.23nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.22nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.22nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.21nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.21nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.20nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.20nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.19nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.19nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.18nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.18nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.17nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.17nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.16nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.16nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.15nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.15nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.14nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.14nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.13nodejsFixed14.16.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.13nodejs-currentFixed15.10.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.12nodejsFixed12.21.0-r0ALPINE-CVE-2021-22884
Alpine Linux 3.11nodejsFixed12.21.0-r0ALPINE-CVE-2021-22884

What the vendor says

As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.