CVE-2021-22884
JSON

7.5high

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”.

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
37.2% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
BIT-NODE-2021-22884BIT-NODE-MIN-2021-22884

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

Product or packageVersionsReported by
NodeJS Nodefrom 4.0 before 4.*, from 5.0 before 5.*, from 6.0 before 6.*, from 7.0 before 7.*, from 8.0 before 8.*, from 9.0 before 9.*, from 10.0 before 10.24.0, from 11.0 before 11.* and 4 moreCVE List
nodejs node.jsfrom 10.0.0 before 10.24.0, from 12.0.0 before 12.21.0, from 14.0.0 before 14.16.0, from 15.0.0 before 15.10.0NVD
fedoraproject fedora32, 33, 34NVD
netapp active_iq_unified_managerNot specifiedNVD
netapp e-series_performance_analyzerNot specifiedNVD
netapp oncommand_insightNot specifiedNVD
netapp oncommand_workflow_automationNot specifiedNVD
netapp snapcenterNot specifiedNVD
oracle graalvm19.3.5, 20.3.1.2, 21.0.0.2NVD
oracle jd_edwards_enterpriseone_toolsbefore 9.2.6.0NVD
oracle mysql_clusterup to 8.0.25NVD
oracle nosql_databasebefore 20.3NVD

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD5.1medium CVSS:2.0AV:N/AC:H/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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.

NVD (es)

Node.js versiones anteriores a 10.24.0, 12.21.0, 14.16.0 y 15.10.0, es vulnerable a unos ataques de reenlace de DNS, ya que la lista blanca incluye “localhost6”. Cuando “localhost6” no está presente en el archivo /etc/hosts, es solo un dominio ordinario que es resuelto por medio de DNS, es decir, a través de la red. Si el atacante controla el servidor DNS de la víctima o puede falsificar sus respuestas, la protección de reenlace de DNS se puede omitir usando el dominio "localhost6". Siempre que el atacante use el dominio "localhost6", aún puede aplicar el ataque descrito en el CVE-2018-7160

References

https://hackerone.com/reports/1069487advisory, exploit, issue-tracking, third-party-advisory
https://nodejs.org/en/blog/vulnerability/february-2021-security-releases/advisory, patch, release-notes, vendor-advisory
https://nodejs.org/en/blog/vulnerability/march-2018-security-releases/#node-js-inspector-dns-rebinding-vulnerability-cve-2018-7160advisory, patch, release-notes, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E4FRS5ZVK4ZQ7XIJQNGIKUXG2DJFHLO7/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F45Y7TXSU33MTKB6AGL2Q5V5ZOCNPKOG/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HSYFUGKFUSZ27M5TEZ3FKILWTWFJTFAZ/vendor-advisory, web
https://www.oracle.com/security-alerts/cpuApr2021.htmladvisory, patch, third-party-advisory
https://security.netapp.com/advisory/ntap-20210416-0001/advisory, third-party-advisory
https://www.oracle.com//security-alerts/cpujul2021.htmladvisory, patch, third-party-advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmladvisory, patch, third-party-advisory
https://security.netapp.com/advisory/ntap-20210723-0001/advisory, third-party-advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfpatch, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-22884 changed 2025-04-30CVE Terms of Use
NVDCVE-2021-22884 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-NODE-2021-22884 changed 2026-10-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-NODE-MIN-2021-22884 changed 2026-10-16Apache-2.0