CVE · Medium · published 2026-10-21

CVE-2026-106072: Node.js let a DNS-only certificate authenticate an IP endpoint spelled in non-canonical IPv4

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

tls.checkServerIdentity() did not classify non-canonical spellings of an IPv4 address as IP addresses. It matched them against the certificate's DNS names, so a certificate that names an address only as a DNS name could authenticate that IP endpoint, while the same certificate is rejected when the client writes the address the usual way.

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-106072

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