Node.js cross-connection memory leak in HTTPS request parser
Affects Node.js 22.x, 24.x and 26.x HTTPS servers whose handlers flush headers before the request body ends and echo or store request bodies. Fixed in 22.23.5, 24.22.3 and 26.13.1.
- Exploited
- No known exploitation
- Fix
- Fixed in 22.23.5, 24.22.3, 26.13.1
- Who is exposed
- Not reported
Summary
Node.js HTTPS servers can leak memory from other connections, including TLS private keys and other users' requests, to an unauthenticated remote client. The attacker must send a request to a handler that calls res.flushHeaders() before the request body ends and later calls res.end() with a non-empty chunk, and the leak only works when the server echoes or stores request bodies on an ordinary route; cleartext node:http is not affected.
Written by a model
Original description
A re-entrancy flaw in Node.js HTTPS lets an unauthenticated client read memory belonging to other connections, including TLS private keys and other users' requests. TLSWrap::DoWrite() calls ClearOut() directly when asked to write zero bytes; if that write is issued from JavaScript running inside the HTTP parser's on_body callback, ClearOut() decrypts the next TLS record while the parser is still mid-body, re-entering llhttp_execute() and causing a use-after-free and an out-of-bounds heap read. The server then copies that freed or unrelated heap memory into the response for the request body. Triggering it requires a handler that calls res.flushHeaders() before the request body ends and later calls res.end() with a non-empty chunk, and reading the leaked memory requires any ordinary route that echoes or stores a request body. Cleartext node:http is not affected. This vulnerability affects Node.js 26.x, 24.x, and 22.x.
Who should check
Teams running Node.js 22.x, 24.x or 26.x HTTPS servers (node:https) whose handlers call res.flushHeaders() before the request body ends, or that echo or store request bodies.
“This vulnerability affects all users in active release lines: 22.x, 24.x, 26.x”
What to do
Upgrade to a fixed version: 22.23.5, 24.22.3, 26.13.1.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-123864 (Node.js is vulnerable to cross-connection memory disclosure via TLS write re-entrancy in the HTTPS request parser), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-123864 (entry last updated 2026-11-16):
Affected:
- nodejs node: from 0.0.0, fixed in 22.23.5; from 23.0.0, fixed in 24.22.3; from 25.0.0, fixed in 26.13.1
Fixed versions: 22.23.5, 24.22.3, 26.13.1.
Conditions (all must be true for the bug to be hit):
- Node.js HTTPS server whose handler calls res.flushHeaders() before the request body ends and later calls res.end() with a non-empty chunk (source: https://nodejs.org/en/blog/vulnerability/november-2026-security-releases)
- A route that echoes or stores a request body, to read the leaked memory (source: https://nodejs.org/en/blog/vulnerability/november-2026-security-releases)
- Cleartext node:http is not affected, so the HTTPS server is required (source: https://nodejs.org/en/blog/vulnerability/november-2026-security-releases)
- Node.js 22.x, 24.x or 26.x release lines (source: https://nodejs.org/en/blog/vulnerability/november-2026-security-releases)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-123864 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-123864 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://nodejs.org/en/blog/vulnerability/november-2026-security-releases
- https://cna.openjsf.org/security-advisories.html
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-123864
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-123864"}.Affected versions
- nodejs nodeFrom 0.0.0 · fixed in 22.23.5; From 23.0.0 · fixed in 24.22.3; From 25.0.0 · fixed in 26.13.1
cve.now Index
- Exploitation0/40No signal
- Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
- Reach17/20Affects Node.js (a widely deployed server, runtime, framework or database)
- Severity8.1/10CVSS 8.1
- No patch0/5No signal
What would change the score
- Would score about 87 if added to CISA KEV
- Would score about 82 if CISA's SSVC rates exploitation active
- Would score about 47 if advisories confirm default setups are exposed
Timeline
- cve.now early warning
Node.js fixes 16 vulnerabilities, including HTTP/2 crash and memory-leak flaws
- CVE published
- First seen by cve.now
- Posted on X by cve.now5 days
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Public exploit activity
- EPSS: 0.40%
- Posted on X by cve.now Nov 11
Since disclosure: the repos PoC-in-GitHub lists and FIRST's daily EPSS score.
On X 10
Evidence 4
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | nodejs.org · en/blog/vulnerability/november-2026-security-releases |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-123864 |
| Record | NVD · CVE-2026-123864 |
| Other links 1 | |
| Link | cna.openjsf.org · security-advisories.html |
Questions about CVE-2026-123864
Is CVE-2026-123864 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
A flaw in the HTTPS request parser's TLS write handling lets an unauthenticated client read memory belonging to other connections, which can include TLS private keys and other users' requests.
Source: nodejs.org
Which versions are affected by CVE-2026-123864?
node: from 0.0.0 before 22.23.5; from 23.0.0 before 24.22.3; from 25.0.0 before 26.13.1.
Source: cve.now feed data
Am I affected, and how do I check?
Only HTTPS servers on the Node.js 22.x, 24.x and 26.x release lines are in scope; cleartext node:http is not affected. The setup also needs a handler that calls res.flushHeaders() before the request body ends and later calls res.end() with a non-empty chunk, plus a route that echoes or stores request bodies. Node.js version can be checked with node --version, and server code can be searched for flushHeaders calls.
Source: nodejs.org
How do I fix CVE-2026-123864?
Upgrade to the fixed version for the release line in use: 22.23.5, 24.22.3 or 26.13.1.
Source: nodejs.org
Related
- SZB-0ddeb66320Started as this early warning
- CVE-2026-123863Node.js is vulnerable to a remote HTTP/2 denial of service via a reachable assertion in Http2Session teardown
- CVE-2026-123872Node.js is vulnerable to a client certificate authentication bypass via TLS 1.2 renegotiation servername change
- CVE-2026-126051Node.js is vulnerable to a remotely triggerable uncaught exception in TLS servers via deferred handshake callbacks
- CVE-2026-123874Node.js is vulnerable to an HTTP/2 use-after-free via respondWithFile() stream reset during a pending write
- CVE-2026-123866Node.js is vulnerable to HTTP/2 response memory disclosure via a use-after-free during stream teardown
No corrections so far. Something wrong on this page? Report an error.