Ubuntu CVE Tracker
UBUNTU-CVE-2021-22931
This advisory was withdrawn on 18 July 2025.
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | nodejs | All versions before 0.10.25~dfsg2-2ubuntu1.2+esm1 (fixed in 0.10.25~dfsg2-2ubuntu1.2+esm1) |
| Ubuntu:Pro:16.04:LTS | nodejs | All versions before 4.2.6~dfsg-1ubuntu4.2+esm2 (fixed in 4.2.6~dfsg-1ubuntu4.2+esm2) |
| Ubuntu:Pro:18.04:LTS | nodejs | All versions before 8.10.0~dfsg-2ubuntu0.4+esm2 (fixed in 8.10.0~dfsg-2ubuntu0.4+esm2) |
| Ubuntu:20.04:LTS | nodejs | All versions before 10.19.0~dfsg-3ubuntu1.1 (fixed in 10.19.0~dfsg-3ubuntu1.1) |
| Ubuntu:22.04:LTS | nodejs | All versions before 12.22.9~dfsg-1ubuntu3 (fixed in 12.22.9~dfsg-1ubuntu3) |
References
- https://ubuntu.com/security/CVE-2021-22931
- https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/#cares-upgrade-improper-handling-of-untypical-characters-in-domain-names-high-cve-2021-22931
- https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/
- https://hackerone.com/reports/1178337
- https://www.cve.org/CVERecord?id=CVE-2021-22931