Vulnerability DatabaseCVE-2026-123872

CVE-2026-123872: 
npm vulnerability analysis and mitigation

Overview

CVE-2026-123872 is a client certificate authentication bypass vulnerability in Node.js TLS that allows an authenticated client to change the servername during TLS 1.2 renegotiation, reaching endpoints it was not authorized to access. It was disclosed on November 11, 2026, as part of Node.js's November 2026 security release batch. Affected versions include Node.js 22.x (before 22.23.5), 24.x (before 24.22.3), and 26.x (before 26.13.1). The vulnerability carries a CVSS v3 base score of 8.1 (High) (Node.js Advisory, Github Advisory).

Technical details

The root cause is improper authentication (CWE-287) and improper certificate validation (CWE-295) in Node.js's TLS 1.2 renegotiation handling. When a server applies different client-certificate policies per hostname — for example, stricter admin-only client-cert authentication on one virtual host and ordinary client-cert authentication on another — Node.js fails to re-evaluate the applicable certificate policy when a client changes the SNI servername during a TLS 1.2 renegotiation. As a result, a client that has already authenticated for a less-restricted hostname can renegotiate the connection under a different servername and carry its existing authenticated session state to a more-restricted endpoint, bypassing the stricter per-hostname policy. Exploitation requires the attacker to already hold a valid client certificate for at least one hostname served by the target (Node.js Advisory, Red Hat Bugzilla).

Impact

A successfully exploiting attacker can access restricted endpoints or administrative interfaces that require stricter client-certificate authentication, without possessing a certificate authorized for those endpoints. This results in high confidentiality and integrity impact — the attacker can read sensitive data and perform unauthorized actions on protected resources — while availability is unaffected. The vulnerability is particularly dangerous in multi-tenant or microservice environments where a single TLS server enforces different authorization tiers per hostname, as it allows lateral movement between security domains within the same server (Node.js Advisory, Github Advisory).

Exploitability

As of the disclosure date, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Feedly). The NVD SSVC assessment confirms exploitation status as "none" and notes the attack is not automatable, as it requires a valid client certificate for at least one hostname on the target server. The EPSS score is approximately 0.36–0.41%, placing it in the 36th percentile for exploitation likelihood within 30 days. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (Github Advisory).

Exploitation steps

  1. Reconnaissance: Identify a Node.js server (versions 22.x, 24.x, or 26.x) that uses TLS 1.2 and applies different client-certificate authentication policies per hostname (e.g., a public API on api.example.com with standard client-cert auth and an admin panel on admin.example.com with stricter CA-restricted client-cert auth).
  2. Obtain a valid client certificate: Acquire or generate a client certificate trusted by the server's default or less-restricted CA policy for one of the hostnames (e.g., api.example.com).
  3. Establish initial TLS 1.2 connection: Connect to the server using the valid client certificate and authenticate successfully to the permitted hostname (api.example.com), establishing a TLS 1.2 session.
  4. Initiate TLS 1.2 renegotiation: Using a TLS client that supports manual renegotiation (e.g., OpenSSL s_client with renegotiation commands, or a custom script), trigger a TLS 1.2 renegotiation on the existing connection.
  5. Change the SNI servername: During the renegotiation ClientHello, set the SNI extension to the protected hostname (e.g., admin.example.com) that requires stricter client-certificate authentication.
  6. Carry existing authentication: Because Node.js does not re-evaluate the client-certificate policy for the new servername during renegotiation, the existing authenticated session is preserved and the connection is now associated with the protected hostname.
  7. Access unauthorized endpoints: Send HTTP requests over the renegotiated connection targeting the protected hostname's restricted resources, bypassing the stricter per-hostname mTLS policy (Node.js Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Network: TLS 1.2 connections to a Node.js server where the SNI servername changes between the initial ClientHello and a subsequent renegotiation ClientHello on the same TCP connection; unexpected access to high-privilege or admin endpoints from client certificates not authorized for those endpoints.
  • Logs: Node.js access logs showing requests to restricted hostnames (e.g., admin interfaces) from client certificates whose subject/issuer corresponds to a less-privileged CA or hostname policy; TLS renegotiation events logged by network inspection tools (e.g., IDS/IPS) on connections that subsequently access sensitive paths.
  • Process/Application: Authorization decisions in application-layer logs granting access to protected resources for client certificates that should not be trusted for those resources; anomalous cross-hostname activity from a single TLS session or client certificate.

Mitigation and workarounds

Node.js has released patched versions addressing this vulnerability: 22.23.5, 24.22.3, and 26.13.1. All users on affected 22.x, 24.x, and 26.x release lines should upgrade immediately. As a temporary workaround where upgrading is not immediately possible, administrators can disable TLS 1.2 renegotiation on the server or consolidate per-hostname client-certificate policies to eliminate the policy disparity that the bypass exploits. Disabling TLS 1.2 entirely in favor of TLS 1.3 (which does not support renegotiation) also eliminates the attack vector (Node.js Advisory, Feedly).

Community reactions

The vulnerability was reported by security researcher pimterry, who also contributed the fix, as acknowledged in the official Node.js security advisory (Node.js Advisory). The November 2026 Node.js security release — which addressed 16 vulnerabilities in total, including several high-severity HTTP/2 and TLS issues — received broad coverage from security news outlets including The Hacker News, CyberSecurityNews, and SecurityOnline, with commentary noting the breadth and severity of the release batch. Red Hat tracked the issue via Bugzilla and assigned it high priority/severity for their product lines (Red Hat Bugzilla). IBM also issued a security bulletin noting that IBM Cognos Analytics was affected by vulnerabilities in this Node.js release.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

nodejs

Affected

sid

nodejs: 24.22.3+dfsg+~cs24.19.2-1

Fixed

trixie

nodejs

Affected

Ubuntu

Unknown

bionic (esm-apps)

nodejs

Unknown

devel

nodejs

Unknown

focal (esm-apps)

nodejs

Unknown

jammy

nodejs

Unknown

jammy (esm-apps)

nodejs

Unknown

noble

nodejs

Unknown

noble (esm-apps)

nodejs

Unknown

resolute

nodejs

Unknown

RHEL / CentOS

Affected

RHEL 8

nodejs:22/nodejs.src

Affected

RHEL 9

nodejs:22/nodejs.src

Affected

RHEL 10

nodejs22.src

Affected

Alpine

Fixed

edge

nodejs: 24.22.3-r0

Fixed

v3.21

nodejs: 22.23.5-r0

Fixed

v3.22

nodejs: 22.23.5-r0

Fixed

v3.23

nodejs: 24.22.3-r0

Fixed

Source: This report was generated using AI

Related npm vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-123872HIGH8.1
  • npm logonpm
  • nodejs24.src
NoYesNov 11, 2026
CVE-2026-126051HIGH7.5
  • npm logonpm
  • nodejs:26::nodejs-full-i18n
NoYesNov 11, 2026
CVE-2026-123874HIGH7.5
  • npm logonpm
  • nodejs22.src
NoYesNov 11, 2026
CVE-2026-123877MEDIUM6.8
  • npm logonpm
  • nodejs24-debuginfo
NoYesNov 11, 2026
CVE-2026-123875MEDIUM5.9
  • npm logonpm
  • nodejs-current
NoYesNov 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management