One invisible character, two different ideas of which host you’re talking to. That’s this bug in a nutshell.

At a glance

  • CVE: CVE-2026-48930
  • Severity: 9.8 (Critical) at NVD. Node.js rates it Medium, and HackerOne, which issued the CVE, scores it 5.6, since it sees the attack as hard to pull off and the impact as limited.
  • Affected: Node.js 22, 24 and 26 before 22.23.0, 24.17.0 and 26.3.1. (NVD names 22.22.3, 24.16.0 and 26.3.0, the last releases before the fix.) Node also reminds everyone that end-of-life lines are always affected when a security release comes out.
  • Known exploited: Not on CISA’s KEV list.

What’s going on

In C, a string ends at the first NUL byte (\0). JavaScript strings don’t work that way, so a JS string can carry a NUL in the middle. Node’s DNS resolver bindings passed hostnames down to native code, and the native side quietly stopped reading at the NUL. Node calls the result “silent authority rebinding”: the host your JavaScript sees isn’t the host you actually connect to.

Node’s own test for the fix uses the hostname 127.0.0.1\u0000.allowed.example. To your JavaScript, that looks like something under allowed.example. The native lookup only ever sees 127.0.0.1.

Who should care? Apps that take a hostname from outside, such as webhook URLs, link previews, “fetch this for me” features or proxy targets, check it against an allowlist, and then hand it to Node to connect. A NUL byte could let a request pass the check and then go somewhere you meant to block. Node’s fix makes dns.lookup(), dns.promises.lookup() and net connections (net.connect() / net.createConnection()) reject hostnames that contain a NUL byte, throwing ERR_INVALID_ARG_VALUE.

Timeline

  • Patch released: 2026-06-18 (Node.js security releases, pre-announced for 2026-06-17)
  • Published on NVD: 2026-06-26

== UPDATE ==

The June 2026 security releases fix it, along with 11 other CVEs, two of them rated High (CVE-2026-48933 and CVE-2026-48618). So the upgrade is worth doing anyway.

  • Patch available: Yep.
  • Fixed in: Node.js 22.23.0, 24.17.0 and 26.3.1. Newer releases have shipped on each line since, and they include the fix too, so grab the current one from nodejs.org.
  • How to apply: Upgrade Node to the latest release on your line, whether that’s via nvm, your OS packages or your Docker base image, then redeploy. If you’re still on an end-of-life line like 20 or 25, move to a supported LTS (22, 24 or 26).
  • If you can’t patch yet: Node’s advisory doesn’t list a workaround, but the fix is just a strict input check, and you can do the same yourself. Reject any hostname that contains \0 before you validate it or pass it on, for example if (host.includes('\0')) throw new Error('invalid host').

References