Home › CVE › JavaScript
CVE-2026-123877 — nodejs node
One of 15 nodejs node vulnerabilities published together by NVD: our article covers all of them.
JavaScriptWebVulnerabilitiesSummary
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.
Severity breakdown
Medium · 6.8
An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- yes, a normal user account
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality and integrity, none on availability
Weakness
- CWE-295: Improper Certificate Validation
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| nodejs node | ≥ 0.0.0, < 22.23.5 | 22.23.5 |
| ≥ 23.0.0, < 24.22.3 | 24.22.3 | |
| ≥ 25.0.0, < 26.13.1 | 26.13.1 |
References by type
Other references
Affected
- nodejs node
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-123877?
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. Weakness type: Improper Certificate Validation (CWE-295).
How severe is CVE-2026-123877?
CVE-2026-123877 has a CVSS 3.0 base score of 6.8 (medium), from the CNA. An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-123877 being exploited?
Not as far as is known: CVE-2026-123877 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026. EPSS estimates a 0.3% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-123877?
nodejs node ≥ 0.0.0, < 22.23.5 (fixed in 22.23.5); nodejs node ≥ 23.0.0, < 24.22.3 (fixed in 24.22.3); nodejs node ≥ 25.0.0, < 26.13.1 (fixed in 26.13.1).
How do I fix CVE-2026-123877?
Update to a fixed release: nodejs node 22.23.5; nodejs node 24.22.3; nodejs node 26.13.1.
Timeline & sources
References
Related vulnerabilities & news
- Kestra Before 1.3.36 Contains Reflected XSS Vulnerability
- Joomla Extension Vulnerability Allows Stored XSS via Link Validation
- Joomla Extension Vulnerability Allows Stored XSS via Thumbnail Widget
- Joomla Extension Vulnerability Allows Stored XSS in Smart Slider 3
- JTL-Shop Cross-site Scripting Vulnerability in Country Manager Page