Node.js Patches 16 CVEs: TLS Keys Leak Over HTTPS
On November 11, 2026, the Node.js project shipped a security release covering three lines at once: 22.23.5, 24.22.3 and 26.13.1. Sixteen CVEs closed, seven of them High, and almost all of them clustered in two places: HTTP/2 and TLS.
One deserves a pause. CVE-2026-123864 does not merely crash the process — it makes the server hand pieces of its own memory to the client, including TLS private keys and other users' requests. It carries a CVSS score of 8.1.
The problem: the trigger is an ordinary pattern
The flaw is a re-entrancy bug between the TLS layer and the HTTP parser. TLSWrap::DoWrite() calls ClearOut() directly when asked to write zero bytes. If that write comes from JavaScript running inside the parser's on_body callback, ClearOut() decrypts the next TLS record while the parser is still mid-body — re-entering llhttp_execute() and producing a use-after-free plus an out-of-bounds heap read. The server then copies that freed or unrelated memory into the request body.
The precondition is not exotic. A handler calls res.flushHeaders() before the request body has ended, then later calls res.end() with a non-empty chunk. Reading the leaked bytes back takes nothing more than an ordinary route that echoes or stores a request body. Worth noting: cleartext node:http is not affected by this one. The exposed path is HTTPS.
What else changed
The rest of the batch revolves around HTTP/2, and the clustering itself is the signal:
- CVE-2026-123863 (High): any unauthenticated client can abort the server through an assertion during HTTP/2 session teardown. It is a variant of CVE-2024-27983 that the earlier fix did not cover.
- CVE-2026-123865 (High): sessions never clean up when a protocol error fires during shutdown — leaked memory and file descriptors, with the socket parked in
CLOSE_WAITindefinitely. - CVE-2026-123866 and CVE-2026-123874 (High): use-after-free during stream teardown; the second needs nothing beyond code that uses
respondWithFile(). - CVE-2026-123872 (High): TLS 1.2 renegotiation lets a client switch servername and carry its authentication to a stricter host, bypassing per-hostname client-certificate policy.
- CVE-2026-123868 (Medium): inbound HTTP/2 data queued on an undrained stream is charged to no session budget, so
maxSessionMemorydoes not bound it.
The list also holds two permission-model bypasses and proxy credentials printed into error messages. The release bumps llhttp, undici and sqlite along the way.
The practical check
First, know exactly where you stand:
node -v
# patched: v22.23.5+ or v24.22.3+ or v26.13.1+
docker compose exec api node -v # containers are the usual blind spotThen look for the shape that opens the door to CVE-2026-123864:
grep -rn "flushHeaders" --include="*.ts" --include="*.js" src/The pattern you are hunting looks like this:
// HTTPS server: headers go out before the request completes
https.createServer(opts, (req, res) => {
res.flushHeaders(); // 1) headers early
const chunks = [];
req.on('data', (chunk) => chunks.push(chunk));
req.on('end', () => {
res.end(Buffer.concat(chunks)); // 2) non-empty chunk + 3) echoes the body
});
});All three conditions together are what turn an ordinary handler into a disclosure channel. Their absence is not safety — it only means this particular CVE is harder to reach in your code.
Real-world caveats
- Upgrading is the only published fix. The advisory lists no workaround and no configuration mitigation, so there is nothing to wait for.
- End-of-Life versions are always affected when a security release lands, and they get no patch. On 20.x or older, the path is migration, not patience.
- Cleartext
node:httpsits outside the disclosure bug but not outside the HTTP/2 set — most of those work over TLS and cleartext alike. - Containers and CI images are where this quietly rots. A base image pinned to an old tag stays exposed long after the hosts are current.
Takeaway
This batch is not routine. A single flaw in it moves the server from "something that can be crashed" to "something that leaks its own keys", and the trigger is a common code shape rather than an elaborate exploit chain. The sequence is simple: identify the version, patch, then review every HTTPS handler that opens headers before the request is complete.
The wider reading matters more. Three issues in this release are described outright as incomplete fixes for earlier CVEs. Patching the reported case is one thing; covering every path that reaches it is another — and that distinction belongs in code review, not in the next security batch.
Official Node.js security advisory — for comparison with an earlier batch: Node.js Fixes 10 CVEs, 4 in the Permission Model