Improper Neutralization of Null Byte or NUL Character Affecting nodejs package, versions [22.20.0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-NODEJS-21427254
  • published22 Oct 2026
  • disclosed21 Oct 2026
  • credithasanfleyah

Introduced: 21 Oct 2026

NewCVE-2026-105482  (opens in a new tab)
CWE-158  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Null Byte or NUL Character via the callback- and promise-based dns.resolve APIs in lib/internal/dns/callback_resolver.js and lib/internal/dns/promises.js. An attacker can make an application resolve an unintended hostname by supplying a name containing an embedded NUL; c-ares treats the name as a C string, so example.com\0.trusted.corp is truncated to example.com, and the resolver returns records for that hostname.

CVSS Base Scores

version 4.0
version 3.1