4.2medium
Node.js is vulnerable to a per-host mTLS authorization bypass via a CA-only SNI context failing open to the default CA
- Severity
- 4.2medium CVSS:3.1 by openjs
- Exploit likelihood
- 0.17% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- openjs
- Also known as
- BIT-NODE-2026-123867BIT-NODE-MIN-2026-123867
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nodejs node | from 0.0.0 before 22.23.5, from 23.0.0 before 24.22.3, from 25.0.0 before 26.13.1 | CVE List |
| node (Bitnami) | before 22.23.5, from 23.0.0 before 24.22.3, from 25.0.0 before 26.13.1 | Bitnami Vulnerability Database |
| node-min (Bitnami) | before 22.23.5, from 23.0.0 before 24.22.3, from 25.0.0 before 26.13.1 | Bitnami Vulnerability Database |
All scores
| openjs | 4.2medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-123867 changed 2026-11-16 | CVE Terms of Use |
| NVD | CVE-2026-123867 changed 2026-11-16 | Public domain |
| Bitnami Vulnerability Database | BIT-NODE-2026-123867 changed 2026-11-27 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-NODE-MIN-2026-123867 changed 2026-11-27 | Apache-2.0 |