Vulnerability
CVE-2026-123867
A per-host mutual-TLS authorization bypass in Node.js lets a client authorized for the default hostname reach a protected hostname it is not authorized for. When a TLS server assigns a hostname a different client-certificate CA with `server.addContext(host, { ca: protectedCA })` but no server certificate in that SNI context, the per-host client CA is never installed and the handshake falls back to the default client CA. In `src/crypto/crypto_tls.cc`, `CertCbDone` installs the SNI context's CA only when `setSniContext` succeeds, but `setSniContext` returns `false` for a context with no server certificate, so a CA-only SNI context silently keeps the default CA. A client holding a certificate trusted by the default CA, but not the protected CA, can therefore complete mTLS to the protected hostname and read its response even with `requestCert` and `rejectUnauthorized` enabled, while a client certified by the protected CA is rejected. This vulnerability affects Node.js 26.x, 24.x, and 22.x.
26 advisories report this vulnerability, across 11 ecosystems.
Advisories in Chainguard
- CGA-2272-vjg8-6cj4
- CGA-6p2j-v9cq-xr4q
- CGA-7chh-943r-vcrj
- CGA-7r92-8c97-qc47
- CGA-f2cj-768p-fx25
- CGA-fmpw-hvp2-f54g
- CGA-v62x-838m-j8ww
- CGA-vpfw-j55r-rp6v
- CGA-wh6v-8ch9-w5f4
- CGA-xj2p-h974-pp3p