Skip to content

Node.js

Node.js is vulnerable to a certificate validation bypass in https.Agent via cross-policy TLS session reuse

CVE-2026-123877Published 11 Nov 2026, 18:28 UTC

Real-world risk

1.8/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.8

scored by the vendor (CNA), CVSS 3.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from openjs)

A certificate validation bypass in Node.js https.Agent lets a cached TLS session authenticated under one CA policy be reused by a later request with a stricter policy. https.Agent.prototype.getName() assigns the same Agent and session-cache key to a request that omits ca and one that explicitly supplies ca: [], because an omitted value appends nothing to the key while an empty array stringifies to an empty string. The two policies differ: omitting ca uses the default trust store, while supplying ca replaces it. Since they share a key, a TLS session authenticated under the broader default policy is handed to a new connection made under the later ca: [] policy, and TLS 1.3 session resumption carries the earlier authentication forward, so the second request reports authorized === true and transmits confidential data to a server its own CA policy would reject on a fresh connection. This vulnerability affects Node.js 26.x, 24.x, and 22.x.

Am I affected?

ProductAffected versions (from the sources)Fixed in
Node.jsUbiquitous>= 0.0.0, < 22.23.5; >= 23.0.0, < 24.22.3; >= 25.0.0, < 26.13.122.23.5, 24.22.3, 26.13.1

What to do

Update to a fixed version: 22.23.5, 24.22.3, 26.13.1.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.3% chance of exploitation in 30 days (percentile 22), as of 2026-12-05.

The arithmetic
  1. Prerequisites multiplied together0.270
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 0.27 × threat 0.851.836
  4. Rounded to one decimal between 0.1 and 101.8

How the score works

Exploitation and evidence timeline

  1. 11 Nov 2026 Published
  2. 3 Dec 2026 Risk 1.8 (cvss fallback)

Weakness

CWE-295

References

Get alerts for Node.js

Free email or text alerts when a vulnerability in Node.js reaches risk 8 or higher. Nothing else.