CVE-2021-22931
JSON

9.8critical

Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashes due to missing input validatio…

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
22.0% (higher than 97% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
BIT-NODE-2021-22931BIT-NODE-MIN-2021-22931

Description

Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashes due to missing input validation of host names returned by Domain Name Servers in Node.js dns library which can lead to output of wrong hostnames (leading to Domain Hijacking) and injection vulnerabilities in applications using the library.

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.*, from 11.0 before 11.* and 5 moreCVE List
nodejs node.jsfrom 12.0.0 up to 12.12.0, from 12.13.0 before 12.22.5, from 14.0.0 up to 14.14.0, from 14.15.0 before 14.17.5, from 16.0.0 before 16.6.2NVD
netapp active_iq_unified_managerNot specifiedNVD
netapp nextgen_apiNot specifiedNVD
netapp oncommand_insightNot specifiedNVD
netapp oncommand_workflow_automationNot specifiedNVD
netapp snapcenterNot specifiedNVD
oracle graalvm20.3.3, 21.2.0NVD
oracle mysql_clusterup to 8.0.26NVD
oracle peoplesoft_enterprise_peopletools8.57, 8.58, 8.59NVD
siemens sinec_infrastructure_network_servicesbefore 1.0.1.1NVD
node (Bitnami)from 12.0.0 before 12.12.1, from 12.13.0 before 12.22.5, from 14.0.0 before 14.14.1, from 14.15.0 before 14.17.5, from 16.0.0 before 16.6.2Bitnami Vulnerability Database

All scores

NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasecritical rating

Classification

CWE-20CWE-170

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashes due to missing input validation of host names returned by Domain Name Servers in Node.js dns library which can lead to output of wrong hostnames (leading to Domain Hijacking) and injection vulnerabilities in applications using the library.

NVD (es)

Node.js versiones anteriores a 16.6.0, 14.17.4 y 12.22.4, es vulnerable a una Ejecución de Código Remota , ataques de tipo XSS, bloqueo de Aplicaciones debido a una falta de comprobación de entrada de los nombres de host devueltos por los Servidores de Nombres de Dominio en la librería dns de Node.js, que puede conllevar a la salida de nombres de host erróneos (conllevando al Secuestro de Dominio) y vulnerabilidades de inyección en aplicaciones que usan la librería.

References

https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/advisory, patch, vendor-advisory
https://hackerone.com/reports/1178337advisory, exploit, issue-tracking, third-party-advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmladvisory, patch, third-party-advisory
https://security.netapp.com/advisory/ntap-20210923-0001/advisory, third-party-advisory
https://www.oracle.com/security-alerts/cpujan2022.htmladvisory, patch, third-party-advisory
https://security.netapp.com/advisory/ntap-20211022-0003/advisory, third-party-advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfpatch, third-party-advisory
https://www.oracle.com/security-alerts/cpujul2022.htmladvisory, third-party-advisory
https://security.gentoo.org/glsa/202401-02vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-22931web

Sources

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