All vulnerabilities

Servers and applications

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

Severity
Critical 9.8
Published
16 Aug 2021
Last changed
17 Jun 2026
Added to UpHeron
21 Oct 2026
Fixed in
12.22.5, 14.17.5, 16.6.2
Sources
NVD

Affected software

SoftwareAffected versions
Node.jsServers and applications · cpe:a:nodejs:node.js
  • From 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.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-22931
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-22931