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...
Critical CVSS 9.8
- CVE id
- CVE-2021-22931
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Node.js Runtimes and servers |
>= 12.0.0, <= 12.12.0 >= 12.13.0, < 12.22.5 >= 14.0.0, <= 14.14.0 >= 14.15.0, < 14.17.5 >= 16.0.0, < 16.6.2 |
12.22.5, 14.17.5, 16.6.2 |
How to fix it
Upgrade Node.js to the fixed release of the line you run: 12.22.5, 14.17.5, 16.6.2.
node --version
- Install the patched Node.js release of your major line (nvm install, or the node image tag) everywhere the app runs and builds.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
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.
References
- CVE-2021-22931 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2021-22931
- Web: https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- Web: https://hackerone.com/reports/1178337
- Web: https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/
- Web: https://security.gentoo.org/glsa/202401-02
- Web: https://security.netapp.com/advisory/ntap-20210923-0001/
- Web: https://security.netapp.com/advisory/ntap-20211022-0003/
- Web: https://www.oracle.com/security-alerts/cpujan2022.html
- Web: https://www.oracle.com/security-alerts/cpujul2022.html
- Web: https://www.oracle.com/security-alerts/cpuoct2021.html
- Web: https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- Web: https://hackerone.com/reports/1178337
- Web: https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/
- Web: https://security.gentoo.org/glsa/202401-02
- Web: https://security.netapp.com/advisory/ntap-20210923-0001/
- Web: https://security.netapp.com/advisory/ntap-20211022-0003/
- Web: https://www.oracle.com/security-alerts/cpujan2022.html
- Web: https://www.oracle.com/security-alerts/cpujul2022.html
- Web: https://www.oracle.com/security-alerts/cpuoct2021.html
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.