CVE · High · published 2026-10-21

CVE-2026-106069: Node.js checked a leading-zero IPv4 host against a different address than it connected to

Node.js 22.x, 24.x and 26.x; fixed in 22.23.4, 24.22.1 and 26.12.1

Node's TLS hostname check could validate the server certificate against a different IP address than the one the client connected to. For an IPv4 host written with a leading zero, tls.checkServerIdentity() and the operating system resolver could read the address differently, so the check and the connection disagreed about which server it was. A server at the connected address could then be authenticated with a certificate issued for another IP address.

What it looks like in a pull request

The fix for the CVE itself is an upgrade: a pull request that bumps Node.js to 22.23.4, 24.22.1 or 26.12.1, or the base image that carries it. The bug class shows up in your own code as a hostname check that compares the wrong thing, or nothing.

In Node that is usually a custom checkServerIdentity callback on tls.connect() or an https.Agent. Node's docs describe it as a callback used "instead of the builtin tls.checkServerIdentity() function" that "should return undefined if the servername and cert are verified". A callback that returns undefined for a whole group of hosts, or accepts any certificate whose name matches a pattern, has verified nothing about the host the client meant to reach, while the ca option next to it makes the diff look stricter.

On the callback: Node.js TLS documentation

Questions to ask in review

Practise

Review realistic pull requests in the same stack and get graded on what you catch: Node PRs in the library.

Sources: Node.js, Wednesday, October 21, 2026 Security Releases · Debian security tracker, CVE-2026-106069 · SecurityOnline, Node.js Fixes 10 Flaws, Including Brotli RCE and TLS Hostname Bypasses

All CVE pages · Bug classes · This week in code review