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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nodejs | node | 0.0.0 – < 22.23.5, 23.0.0 – < 24.22.3, 25.0.0 – < 26.13.1 | 22.23.5 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nodejs | No fix yet | — |
| Debian 13 | nodejs | No fix yet | — |
| Debian 12 | nodejs | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | nodejs | No fix yet | — |
| Ubuntu 26.04 LTS | nodejs | No fix yet | — |
| Ubuntu 24.04 LTS | nodejs | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | nodejs | No fix yet | — |
| Ubuntu Pro 20.04 LTS | nodejs | No fix yet | — |
| Ubuntu Pro 18.04 LTS | nodejs | No fix yet | — |
| Ubuntu Pro 16.04 LTS | nodejs | No fix yet | — |
| Ubuntu Pro 14.04 LTS | nodejs | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | nodejs22 +6 | 1:22.23.5-2.3.2.3.1.hum1 | RHSA-2026:99433 |
| Red Hat Hardened Images 1 | nodejs22-npm | 1:10.9.9-1.22.23.5.2.3.2.3.1.hum1 | RHSA-2026:99433 |
| Red Hat Hardened Images 1 | nodejs24 +5 | 1:24.22.3-0.1.hum1 | RHSA-2026:99435 |
| Red Hat Hardened Images 1 | nodejs24-npm | 2:11.19.1-1.24.22.3.0.1.hum1 | RHSA-2026:99435 |
| Red Hat Hardened Images 1 | nodejs24-npm-bin | 2:24.22.3-0.1.hum1 | RHSA-2026:99435 |
| Red Hat Hardened Images 1 | nodejs26 +6 | 1:26.13.1-0.1.hum1 | RHSA-2026:99436 |
| Red Hat Hardened Images 1 | nodejs26-npm | 1:11.20.0-1.26.13.1.0.1.hum1 | RHSA-2026:99436 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | nodejs | 24.22.3-r0 | — |
| Alpine v3.24 | nodejs-current | 26.13.1-r0 | — |
| Alpine v3.23 | nodejs | 24.22.3-r0 | — |
| Alpine v3.22 | nodejs | 22.23.5-r0 | — |
| Alpine v3.21 | nodejs | 22.23.5-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | nodejs22 +4 | 1:22.23.5-1.amzn2023.0.1 | ALAS2023-2026-3456 |
| Amazon Linux 2023 | nodejs22-npm | 1:10.9.9-1.22.23.5.1.amzn2023.0.1 | ALAS2023-2026-3456 |
| Amazon Linux 2023 | nodejs24 +4 | 1:24.22.3-1.amzn2023.0.1 | ALAS2023-2026-3457 |
| Amazon Linux 2023 | nodejs24-npm | 1:11.19.1-1.24.22.3.1.amzn2023.0.1 | ALAS2023-2026-3457 |
| Amazon Linux 2023 | v8-12.4-devel | 3:12.4.254.21-1.22.23.5.1.amzn2023.0.1 | ALAS2023-2026-3456 |
| Amazon Linux 2023 | v8-13.6-devel | 3:13.6.233.17-1.24.22.3.1.amzn2023.0.1 | ALAS2023-2026-3457 |
Advisories 7
- RHSA-2026:99436 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:99435 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- RHSA-2026:99433 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- NCSC-2026-0492 Kwetsbaarheden verholpen in Node.js NCSC-NL (Netherlands) · Nov 12, 2026
- ALAS2023-2026-3456 Important: nodejs22 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 12, 2026
- ALAS2023-2026-3457 Important: nodejs24 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 12, 2026
- WID-SEC-2026-4525 Node.js: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026