Skip to main content
No exploitation reportedFix available

CVE-2021-22884

No exploitation reported by the sources we read.

  • Published2021-03-03
  • Fixed in15.10.0 · 14.16.0 · 12.21.0 · 10.24.0
  • WeaknessCWE-350

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-03-0318:15CVE publishedNVD

Versions per branch

NVD · OSV
Node.js
BranchAffectedFixed in
15.x≥ 15.0.0, < 15.10.015.10.0
14.x≥ 14.0.0, < 14.16.014.16.0
12.x≥ 12.0.0, < 12.21.012.21.0
10.x≥ 10.0.0, < 10.24.010.24.0
Fedoraproject fedora
BranchAffectedFixed in
32.x= 32no fix published
33.x= 33no fix published
34.x= 34no fix published
Oracle graalvm
BranchAffectedFixed in
19.3= 19.3.5no fix published
20.3= 20.3.1.2no fix published
21.0= 21.0.0.2no fix published

10 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • nodejsUbuntu:Pro:18.04:LTSall versions · fixed in 8.10.0~dfsg-2ubuntu0.4+esm3
  • nodejsUbuntu:20.04:LTSall versions · fixed in 10.19.0~dfsg-3ubuntu1.2
  • nodejsRocky Linux:8all versions · fixed in 1:10.24.0-1.module+el8.3.0+101+f84c7154
  • nodejsRocky Linux:8all versions · fixed in 1:12.21.0-1.module+el8.3.0+99+3663d81c
  • nodejsRocky Linux:8all versions · fixed in 1:14.16.0-2.module+el8.3.0+100+234774f7
  • nodejsRed Hat:rhel_eus:8.2::appstreamall versions · fixed in 1:10.24.0-1.module+el8.2.0+10165+019e8570and 5 other packages
  • nodejsRed Hat:rhel_eus:8.2::appstreamall versions · fixed in 1:12.21.0-1.module+el8.2.0+10192+8959c43band 5 other packages
  • nodejsRed Hat:rhel_eus:8.1::appstreamall versions · fixed in 1:10.24.0-1.module+el8.1.0+10161+5cffdac6and 5 other packages

141 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-22884 Red Hat Product Security354 products fixed · 1 known affected

    nodejs: DNS rebinding in --inspect

    quay/quay-rhel8 as a component of Red Hat Quay 3

  • ICSA-22-069-09 CISA1 known affected

    Siemens SINEC INS

    SINEC INS

  • SSA-389290 Siemens ProductCERT1 known affected

    SSA-389290: Third-Party Component Vulnerabilities in SINEC INS

    SINEC INS

  • RHSA-2021:0831 Red Hat Product Security48 products fixed

    Red Hat Security Advisory: rh-nodejs12-nodejs security update

  • RHSA-2021:0830 Red Hat Product Security48 products fixed

    Red Hat Security Advisory: rh-nodejs14-nodejs security update

  • RHSA-2021:0827 Red Hat Product Security48 products fixed

    Red Hat Security Advisory: rh-nodejs10-nodejs security update

7 more advisories

Full record on NVD

Fix

  1. Update Node.js to 15.10.0 · 14.16.0 · 12.21.0 · 10.24.0
  2. Vendor fix CISA ICSA-22-069-09 · 1 productUpdate to V1.0.1.1 or later version
  3. Vendor fix Siemens ProductCERT SSA-389290 · 1 productUpdate to V1.0.1.1 or later version
  4. Vendor fix Red Hat Product Security RHSA-2021:0831 · 48 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  5. Workaround from the vendor Red Hat Product Security RHSA-2021:0831 · 48 productsEnsure that 'localhost6' is part of /etc/hosts. e.g.: ``` $ grep localhost6 /etc/hosts ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 ```

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVSS 3.17.5read 2026-10-23
  • NVDCVSS 2.05.1read 2026-10-23
  • CNAweakness (CWE)CWE-350known since 2026-10-23
  • FIRST EPSSEPSS score36.8 %read 2026-11-09
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
2021-03-03
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-2w6h-7cgj-qw4q

Frequently asked questions

What is CVE-2021-22884?

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.

Is CVE-2021-22884 actively exploited?

Active exploitation of CVE-2021-22884 has not been confirmed. Its EPSS score was 36.8% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-22884?

CVE-2021-22884 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.

Running Node.js? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record