TLS certificate hostname bypass when the IP is written fullwidth digits
Node.js TLS hostname verification failed to treat hosts written with non-ASCII digits as IP addresses, so a certificate with a matching DNS name or wildcard was accepted for an IP endpoint. An attacker with such a certificate could impersonate a server at an IPv4 address.
Originally disclosed on HackerOne
- Triaged in 2 days
- Fixed in 34 days
- Disclosed after 36 days
Summary by the program
A flaw in Node.js TLS hostname verification allows a certificate without a matching IP address SAN to authenticate a connection to an IPv4 address when the host is written with non-ASCII characters, such as fullwidth digits (127.0.0.1).
tls.checkServerIdentity() did not recognize such hosts as IP addresses, even though they normalize and resolve to a regular IPv4 address, and matched them against the certificate DNS names and Common Name instead. A certificate containing DNS:127.0.0.1 or DNS:*.0.0.1 could therefore be accepted for an IP endpoint it was not issued for. This is a regression introduced after the fix for CVE-2026-48618.
This vulnerability affects Node.js 26.x and 24.x.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the hostname check classified the host as a DNS name rather than an IP address because it did not normalise non-ASCII digits before deciding, so it compared against DNS SANs and the Common Name.
Impact
A certificate containing a matching DNS name or wildcard could be accepted for an IP endpoint it was not issued for, allowing impersonation of that endpoint.
What the attacker needed
Attacker holds a certificate with a matching DNS SAN or CN; victim connects using non-ASCII digit host
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program using Node.js connects over TLS, it checks the certificate matches the address. Here, if the address used unusual Unicode digits, Node.js compared it against the certificate's domain names instead of its IP addresses, so a certificate for a domain could pass for an IP. Someone with such a certificate could pretend to be the server you meant to reach.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.