CVE-2026-106069: Node.js checked a leading-zero IPv4 host against a different address than it connected to
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
- Which Node.js version does this service run on, and is it at or above the fixed release for its line?
- Does the PR add a
checkServerIdentitycallback? Does it calltls.checkServerIdentity(host, cert)first and only add checks after it? - Does any branch of the callback return
undefinedwithout comparing the certificate to the host? - If a certificate does not name the host, is the certificate fixed, or is the client loosened?
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
From the same release
- CVE-2026-105483: Node.js matched an IPv4 host written in fullwidth digits against certificate DNS names
- CVE-2026-106072: Node.js let a DNS-only certificate authenticate an IP endpoint spelled in non-canonical IPv4