Node.js is vulnerable to a per-host mTLS authorization bypass via a CA-only SNI context failing open to the default CA (nodejs node)
En bref
- Source
- NVD
- EPSS
- EPSS 0.17 % · centile 7 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- openjs
- Produits affectés
- nodejs · node
- Statut NVD
- Awaiting Analysis
Rechercher sur…
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.
Faiblesses (CWE)
- CWE-295 — Validation incorrecte de certificat
Crédits
- Uttkarsh Singh signalement
- mcollina développement du correctif
- UlisesGascon relecture du correctif
- pimterry relecture du correctif
- aduh95 coordination
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N | openjs |
| CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N | NVD · ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2026-123689
- GCVE · GCVE-0-2026-123867
Avis du CERT-FR
- CERTFR-2026-AVI-1539 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1531 — Multiples vulnérabilités dans Node.js · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions affectées |
|---|---|
| nodejs · node | affectée : ≥ 0.0.0 < 22.23.5 affectée : ≥ 23.0.0 < 24.22.3 affectée : ≥ 25.0.0 < 26.13.1 Autres versions : non affectée |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |