Node 24.22.0 accepts 127.1 against a DNS name that 22.23.3 already rejects
Node 24.22.0 accepts 127.1 against a DNS name that 22.23.3 already rejects
127.1 is a spelling glibc resolves to 127.0.0.1. It is not the text 127.0.0.1. On Node.js 24.22.0, a local TLS server whose certificate had only DNS:127.0.0.1 completed the handshake when the client used that short spelling. The same certificate, the same spelling, and the same loopback listener were rejected by Node.js 22.23.3. That error called 127.1 an IP address that was not in the certificate. Node.js 24.22.1 and 22.23.4 rejected it too, with a third message: the host is a non-canonical IP address.