Intel

AIKIDO-2026-962416

node is vulnerable to Null Byte Injection

CVE-2026-105482Published Oct 21, 2026
October 21, 2026

75

CVE Score

High

Null Byte Injection

Are you affected? Scan for Free

TL;DR

dns.resolve and the other dns resolver methods pass the hostname to c-ares as a C string. A NUL byte in that hostname ends the string, so the query uses only the text before the NUL. An application that checks a suffix after untrusted input can resolve a different name than the one it checked. The fix rejects resolver hostnames and setLocalAddress arguments that contain a NUL byte.

How do I fix this?

Upgrade the node and/or the nodejs library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and a DNS name passed to the resolver can contain a NUL byte.

Package

node

Versions

0.6.0 - 22.23.3

Fixed in 22.23.4

23.0.0 - 24.22.0

Fixed in 24.22.1

25.0.0 - 26.12.0

Fixed in 26.12.1

Background info

node is vulnerable to Null Byte Injection in versions 0.6.0 - 22.23.3, 23.0.0 - 24.22.0 and 25.0.0 - 26.12.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea