DNS Rebinding 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.41% (33rd 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-17674739
  • published29 Jun 2026
  • disclosed26 Jun 2026
  • credittmeletlidis

Introduced: 26 Jun 2026

NewCVE-2026-48930  (opens in a new tab)
CWE-350  (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 DNS Rebinding in dns.lookup() (lib/dns.js) and lookupAndConnect() (lib/net.js), which forward a hostname containing an embedded NUL byte to the native resolver bindings where the C string is truncated at the first NUL. An attacker can cause an application to resolve and connect to a different authority than the one its JavaScript-level validation or logging observed by supplying a hostname such as attacker.com\0.allowed.example.com, because the resolver acts on the truncated prefix while the JavaScript string retains the full value.

CVSS Base Scores

version 4.0
version 3.1