LiveActive security incident?Get immediate response
CVE Record

CVE-2021-22931: Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashe...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-22931 affects older Node.js releases. A DNS response could cause Node’s DNS library to return an incorrect or unsafe hostname, creating downstream risk such as application crashes, injection, XSS, domain hijacking, and possible remote code execution in affected application contexts.

Executive priority

Prioritize remediation where Node.js services process external DNS lookups or feed hostname data into web output, routing, authentication, or automation. No active exploitation is cited, but the impact categories justify prompt patching.

Technical view

Node.js before 16.6.0, 14.17.4, and 12.22.4 lacked sufficient validation of hostnames returned by DNS. The CVE maps to CWE-170 and can affect applications that trust or render DNS-derived hostnames. Exact impact depends on how the application uses DNS results.

Likely exposure

Exposure is most likely in applications, containers, servers, appliances, or packaged products running vulnerable Node.js versions and using the Node DNS library. Older unsupported Node branches listed in the CVE should be treated as vulnerable unless vendor-specific guidance says otherwise.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation evidence. Practical exploitability depends on attacker influence over DNS responses and on vulnerable applications using returned hostnames in sensitive output, routing, or execution contexts.

Researcher notes

Evidence is clear on affected Node.js version thresholds and the DNS hostname validation flaw. Public sources do not provide CVSS in the bundle, and exploitation status is not established. Avoid assuming universal RCE; application behavior determines realized impact.

Mitigation direction

  • Upgrade Node.js to 16.6.0, 14.17.4, 12.22.4, or later supported releases.
  • Replace unsupported Node.js branches with maintained, patched versions.
  • Check vendor advisories for products that embed or bundle Node.js.
  • Review DNS-derived hostname handling for unsafe trust, rendering, or execution paths.

Validation and detection

  • Inventory Node.js versions across servers, containers, build images, and packaged applications.
  • Confirm affected assets are no longer running versions before 16.6.0, 14.17.4, or 12.22.4.
  • Identify applications using the Node DNS library with externally influenced lookups.
  • Verify vendor patch status for Oracle, NetApp, Siemens, and Gentoo affected products.
Prepared
Confidence
medium
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-170: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-22931 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
10Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
NodeJSNode4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-170 · source CWE mapping

Improper Null Termination

Improper Null Termination represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.