Vulnerability DatabaseCVE-2026-123877

CVE-2026-123877: 
npm vulnerability analysis and mitigation

Overview

CVE-2026-123877 is a certificate validation bypass vulnerability in Node.js https.Agent caused by improper TLS session cache key generation, allowing a cached TLS session authenticated under a permissive CA policy to be reused by a later request with a stricter CA policy. It was disclosed on November 11, 2026, as part of the Node.js 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). It carries a CVSS v3.0 base score of 6.8 (Medium) (Node.js Advisory, GitHub Advisory).

Technical details

The root cause is classified as CWE-295 (Improper Certificate Validation). The flaw lies in https.Agent.prototype.getName(), which generates the same session-cache key for two semantically different CA configurations: a request that omits the ca option (using the system default trust store) and one that explicitly sets ca: [] (replacing the trust store with an empty list, effectively rejecting all CAs). Both produce an identical cache key because an omitted value contributes nothing to the key string while an empty array stringifies to "". As a result, a TLS 1.3 session ticket established under the broader default CA policy is handed to a subsequent connection that intended to use the stricter ca: [] policy; TLS 1.3 session resumption carries the prior authentication forward, causing the second request to report authorized === true and transmit data to a server that would be rejected on a fresh connection (Node.js Advisory, Red Hat Bugzilla). Exploitation requires network access and low-level privileges (e.g., the ability to influence request parameters within the same application), and attack complexity is rated High due to the specific sequencing of requests needed to trigger the cache collision (GitHub Advisory).

Impact

Successful exploitation allows an application to unintentionally transmit confidential data to a server that would fail certificate validation under the intended CA policy, effectively bypassing the application's own TLS trust enforcement. The confidentiality and integrity impacts are both rated High, as sensitive data may be sent to and potentially manipulated by an untrusted server. Availability is not impacted. The vulnerability is scoped to the affected application instance and does not directly enable lateral movement, but could expose credentials or sensitive payloads to a rogue or misconfigured server (Node.js Advisory, GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure (GitHub Advisory). The EPSS score is approximately 0.214%, placing it in the 16th percentile for exploitation likelihood within 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. The NVD SSVC assessment classifies it as non-automatable with no known exploitation (GitHub Advisory).

Exploitation steps

  1. Identify a vulnerable application: Find a Node.js application (versions 22.x, 24.x, or 26.x before the patched releases) that uses a shared https.Agent instance and makes HTTPS requests with mixed CA configurations — some omitting ca and others explicitly setting ca: [].
  2. Trigger a default-CA request first: Cause the application to make an HTTPS request to a target server without specifying the ca option, so the connection is established using the system default trust store and a TLS 1.3 session ticket is cached under the shared agent.
  3. Exploit the cache key collision: Cause the application to make a subsequent HTTPS request to the same (or a different) server with ca: [] specified. Because getName() generates the same cache key for both configurations, the previously cached TLS session is reused.
  4. Achieve authentication bypass via session resumption: TLS 1.3 session resumption carries the earlier authentication forward; the second request reports authorized === true even though the server's certificate would be rejected under the ca: [] policy on a fresh connection.
  5. Receive confidential data: The application transmits sensitive request data (e.g., credentials, API tokens, private payloads) to the server, which may be one that the application's own CA policy was intended to reject (Node.js Advisory, Red Hat Bugzilla).

Mitigation and workarounds

Upgrade Node.js to the patched versions: 22.23.5, 24.22.3, or 26.13.1 or later, which fix the session-cache key generation in https.Agent.prototype.getName() to correctly differentiate between omitted and explicitly empty ca values (Node.js Advisory). As a workaround prior to patching, ensure consistent CA validation policies across all requests within the same https.Agent instance — avoid mixing requests that omit ca with those that explicitly set ca: []. Applications can also use separate https.Agent instances for requests with different CA policies to prevent session cache sharing (Red Hat Bugzilla).

Community reactions

The vulnerability was reported by researchers aegis1337 and mickeyjoe, and fixed by Node.js core maintainer mcollina, as acknowledged in the official Node.js security advisory (Node.js Advisory). The November 2026 Node.js security release, which included 16 CVEs total, received broad coverage from security news outlets including CyberSecurityNews, SecurityOnline, and UnderCodeNews, with commentary noting the breadth of TLS and HTTP/2 issues addressed in the batch release. Red Hat tracked the issue via Bugzilla and is assessing impact on downstream products (Red Hat Bugzilla). IBM also issued a security bulletin noting that IBM Cognos Analytics is affected by vulnerabilities in this Node.js release batch.

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