SecurityContext

CVE-2021-22931: Node.js - Input Validation Vulnerability

  • Cve: CVE-2021-22931
  • Name: Node.js - Input Validation Vulnerability
  • 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.
  • Impact: Attackers can execute arbitrary code, perform XSS attacks, or crash applications by manipulating DNS responses.
  • Remediation: Update Node.js to version 16.6.0, 14.17.4, 12.22.4 or later.
  • Vulnerability impact: remote_code_execution, client_script_exec, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.21952
  • Epss percentile: 0.97699
  • Assignee: [email protected]
  • Published at: 2021-08-16T19:15:13Z
  • Age in days: 1926
  • Modified at: 2026-06-17T03:38:03Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 9
  • Products total: 10
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-22931
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: vulnerability type, requirements

Cwe

IdName
CWE-170Improper Null Termination
CWE-20Improper Input Validation

Hackerone

  • Reports: 1
  • Rank: 5211

Public exploits

UrlSourceAdded date
https://hackerone.com/reports/1178337nvd2021-08-16

References

Same in every row:

  • Source: nvd
UrlTags
https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/Patch, Vendor Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfPatch, Third Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.htmlPatch, Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmlPatch, Third Party Advisory
https://hackerone.com/reports/1178337Exploit, Issue Tracking, Third Party Advisory
https://security.netapp.com/advisory/ntap-20210923-0001/Third Party Advisory
https://security.netapp.com/advisory/ntap-20211022-0003/Third Party Advisory
https://www.oracle.com/security-alerts/cpujul2022.htmlThird Party Advisory
https://security.gentoo.org/glsa/202401-02

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
nodejs:node.js>= 16.0.0, < 16.6.2; >= 14.15.0, < 14.17.5; >= 14.0.0, <= 14.14.0; >= 12.13.0, < 12.22.5; >= 12.0.0, <= 12.12.0/v1/products/nodejs/node.js
netapp:oncommand_insightall versions/v1/products/netapp/oncommand_insight
netapp:active_iq_unified_managerall versions/v1/products/netapp/active_iq_unified_manager
netapp:oncommand_workflow_automationall versions/v1/products/netapp/oncommand_workflow_automation
netapp:snapcenterall versions/v1/products/netapp/snapcenter
oracle:peoplesoft_enterprise_peopletools= 8.59, = 8.58, = 8.57/v1/products/oracle/peoplesoft_enterprise_peopletools
oracle:graalvm= 21.2.0, = 20.3.3/v1/products/oracle/graalvm
oracle:mysql_cluster<= 8.0.26/v1/products/oracle/mysql_cluster
siemens:sinec_infrastructure_network_services< 1.0.1.1/v1/products/siemens/sinec_infrastructure_network_services
netapp:nextgen_apiall versions/v1/products/netapp/nextgen_api

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-08-16
  • Remote: yes
  • Hackerone reports: 1
  • Exposed hosts: 3533194
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since