# 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 validatio…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 22.0%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-16T00:00:00.000Z
- Modified: 2026-10-16T09:45:28.567Z
- Also known as: BIT-NODE-2021-22931, BIT-NODE-MIN-2021-22931
- Weaknesses: CWE-20, CWE-170
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: hackerone

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

(As written by CVE List.)

## Affected

- NodeJS Node: from 4.0 before 4.*; from 5.0 before 5.*; from 6.0 before 6.*; from 7.0 before 7.*; from 8.0 before 8.*; from 9.0 before 9.*; from 10.0 before 10.*; from 11.0 before 11.*; from 12.0 before 12.22.5; from 13.0 before 13.*; from 14.0 before 14.17.5; from 15.0 before 15.*; and 1 more
- 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
- netapp active_iq_unified_manager: no versions given
- netapp nextgen_api: no versions given
- netapp oncommand_insight: no versions given
- netapp oncommand_workflow_automation: no versions given
- netapp snapcenter: no versions given
- oracle graalvm: 20.3.3; 21.2.0
- oracle mysql_cluster: up to 8.0.26
- oracle peoplesoft_enterprise_peopletools: 8.57; 8.58; 8.59
- siemens sinec_infrastructure_network_services: before 1.0.1.1
- node (Bitnami): from 12.0.0 before 12.12.1; from 12.13.0 before 12.22.5; from 14.0.0 before 14.14.1; from 14.15.0 before 14.17.5; from 16.0.0 before 16.6.2
- node-min (Bitnami): from 12.0.0 before 12.12.1; from 12.13.0 before 12.22.5; from 14.0.0 before 14.14.1; from 14.15.0 before 14.17.5; from 16.0.0 before 16.6.2

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://hackerone.com/reports/1178337> (exploit, advisory, issue-tracking, third-party-advisory)
- <https://nodejs.org/en/blog/vulnerability/aug-2021-security-releases/> (advisory, patch, vendor-advisory)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (advisory, patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210923-0001/> (advisory, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (advisory, patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20211022-0003/> (advisory, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf> (patch, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (advisory, third-party-advisory)
- <https://security.gentoo.org/glsa/202401-02> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22931> (web)

## Sources

- CVE List: [CVE-2021-22931](https://www.cve.org/CVERecord?id=CVE-2021-22931), CVE Terms of Use, modified 2025-04-30
- NVD: [CVE-2021-22931](https://nvd.nist.gov/vuln/detail/CVE-2021-22931), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NODE-2021-22931](https://osv.dev/vulnerability/BIT-NODE-2021-22931), Apache-2.0, modified 2026-10-16
- Bitnami Vulnerability Database: [BIT-NODE-MIN-2021-22931](https://osv.dev/vulnerability/BIT-NODE-MIN-2021-22931), Apache-2.0, modified 2026-10-16

---

Page: https://cve.day/CVE-2021-22931 · Whole record: https://cve.day/CVE-2021-22931.json · Rebuilt by cve.day 2026-11-25T22:58:03.257Z
