DNS Rebinding Affecting nodejs/node package, versions [22.0.0, 22.23.0)[23.0.0, 24.17.0)[25.0.0, 26.3.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (25th 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-UNMANAGED-NODEJSNODE-17674738
  • published29 Jun 2026
  • disclosed26 Jun 2026
  • credittmeletlidis

Introduced: 26 Jun 2026

CVE-2026-48930  (opens in a new tab)
CWE-350  (opens in a new tab)

How to fix?

Upgrade nodejs/node to version 22.23.0, 24.17.0, 26.3.1 or higher.

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