cbcvebase.
CVE-2021-22931
published 2021-08-16

CVE-2021-22931: 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…

PriorityP266critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
21.95%
97.4th percentile
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

48 ranges· showing 25
VendorProductVersion rangeFixed in
debiannodejs
msrcazl3_ceph_18.2.2-8_on_azure_linux_3.0
msrcazl3_tensorflow_2.16.1-9_on_azure_linux_3.0
msrccbl2_nodejs_16.14.0-1_on_cbl_mariner_2.0
msrccbl2_python-gevent_21.1.2-3_on_cbl_mariner_2.0
msrccbl_mariner_1.0_arm
msrccbl_mariner_1.0_x64
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64
msrccm1_nodejs_14.17.5-1_on_cbl_mariner_1.0
nodejsnode>= 10.0 < 10.*10.*
nodejsnode>= 11.0 < 11.*11.*
nodejsnode>= 12.0 < 12.22.512.22.5
nodejsnode>= 13.0 < 13.*13.*
nodejsnode>= 14.0 < 14.17.514.17.5
nodejsnode>= 15.0 < 15.*15.*
nodejsnode>= 16.0 < 16.6.216.6.2
nodejsnode>= 4.0 < 4.*4.*
nodejsnode>= 5.0 < 5.*5.*
nodejsnode>= 6.0 < 6.*6.*
nodejsnode>= 7.0 < 7.*7.*
nodejsnode>= 8.0 < 8.*8.*
nodejsnode>= 9.0 < 9.*9.*
nodejsnode.js12.0.0 – 12.12.0
nodejsnode.js>= 12.13.0 < 12.22.512.22.5

Detection & IOCsextracted from sources · hover to see the quote

  • Target Node.js versions prior to 16.6.0, 14.17.4, and 12.22.4 — missing input validation of hostnames returned by DNS in the Node.js dns library enables RCE, XSS, and domain hijacking
  • Exploitation vector is network/HTTP — monitor for anomalous DNS responses containing atypical/special characters in hostnames being processed by Node.js applications
  • Exploitation can lead to domain hijacking and injection attacks; inspect DNS responses consumed by Node.js for hostnames with unexpected or non-standard characters
  • ·Red Hat Enterprise Linux 8 (nodejs:16/nodejs) and RHEL 9 (nodejs) are marked Not Affected; Red Hat Quay 3 (quay/quay-rhel8) is marked Will Not Fix with LOW impact because nodejs is only used at build time from RHEL 3.5 onward
  • ·Exploitation requires network access (HTTP protocol, remote exploit: Yes) per Oracle advisories; CVSS score is 9.8 critical

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
ghsa9.1CRITICAL
osv9.8CRITICAL
vendor_debian9.8LOW
vendor_msrc9.8CRITICAL
vendor_oracle9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.