Node.js HTTP/2 and TLS Vulnerability Fix: Patch CVE-2026-123864
Fix the Node.js HTTP/2 and TLS vulnerability (CVE-2026-123864 and 15 more CVEs) that can leak TLS private keys in production. Step-by-step fix guide.
By Babul Jack
If your production stack terminates HTTPS or HTTP/2 inside Node.js, the November 11, 2026 security release fixes a bug that can leak another connection's data, including TLS private keys, straight into a request body. The fix is to upgrade every affected process to Node.js 26.13.1, 24.22.3, or 22.23.5 and restart it, since a running process keeps the vulnerable runtime loaded in memory even after you rebuild the image.
I got pulled into two client incident calls the week this advisory dropped, both from teams who assumed a routine npm audit would catch it. It won't — this lives in the Node.js binary itself, not in a dependency. Here's what the 16 CVEs actually mean for a production app, how to tell if you're exposed, and the exact patch sequence I used.
What happened in the Node.js November 2026 security release
The Node.js project shipped security releases for all three supported lines on November 11, 2026: versions 26.13.1 'Lithium', 24.22.3 'Krypton', and 22.23.5 'Jod'. The advisory covers 16 CVEs — seven rated High, six Medium, three Low — and most sit in the HTTP/2 and TLS code paths that any public-facing server relies on.
Several of these bugs need no authentication and no unusual configuration. A default HTTP/2 or HTTPS server with a hostile client is enough to trigger a crash, a memory leak, or in the worst case, cross-connection data disclosure. Node.js has not published CVSS scores or workarounds for any of them — upgrading is the only fix on offer.
The CVE-2026-123864 TLS private key leak, explained
The bug getting the most attention is CVE-2026-123864, a re-entrancy flaw in how Node.js handles TLS writes inside the HTTP parser. When a zero-length write happens inside the parser's on_body callback, TLSWrap::DoWrite() re-enters the parser mid-body, which triggers a use-after-free and an out-of-bounds heap read.
The server then copies that freed or unrelated heap memory straight into the request body it's building — and that memory can contain TLS private keys or another user's in-flight request. To trigger it, an app needs to call res.flushHeaders() before the request body finishes and later call res.end() with a non-empty chunk, a pattern that's common in streaming APIs and proxies. Only HTTPS is affected; plain node:http is safe from this specific bug.
Why this one deserves priority over the rest
Most of the other High-severity bugs crash a process (denial of service). CVE-2026-123864 is the one that can hand an attacker data they were never supposed to see, which is why I treated it as the headline issue when briefing clients, even though the advisory doesn't rank CVEs by exploitability.
The other high-severity HTTP/2 and TLS bugs
Four more High-rated issues sit in the HTTP/2 server, and two more are TLS-specific:
CVE
Component
Impact
CVE-2026-123863
HTTP/2
Unauthenticated client crashes the process via a stream that outlives its session (24.x, 26.x)
CVE-2026-123865
HTTP/2
Protocol error during session shutdown leaks memory and file descriptors indefinitely
CVE-2026-123866
HTTP/2
Tearing down a stream mid-write can send freed response memory, including other connections' buffers, to a peer
CVE-2026-123874
HTTP/2
Use-after-free when a file served via respondWithFile()/respondWithFD() is cancelled mid-write (24.x, 26.x)
CVE-2026-123872
TLS
A client can renegotiate a TLS 1.2 connection under a different server name, carrying its client-certificate authentication to a stricter host
CVE-2026-126051
TLS
Crafted handshake crashes servers using SNICallback, OCSPRequest, newSession, resumeSession, or server.addContext() (24.x, 26.x)
Six Medium-severity fixes round out the HTTP/2 and TLS picture, including a one-byte heap overflow in session.altsvc(), an HTTP/2 memory-accounting bypass that lets one stream hold hundreds of megabytes past maxSessionMemory, and two certificate-trust gaps where a CA-only SNI context could silently fall back to the default client CA. Three Low-severity fixes cover a Permission Model file-name leak in recursive fs.watch and a zlib crash on an already-destroyed stream.
Notably, five of the 16 CVEs — including the three most serious ones — are credited to a researcher working with Anthropic's Claude in the discovery process, a detail worth flagging to any security-conscious client who asks how these were found.
How to check if you're exposed
Run this on every host, container, and CI runner that serves production traffic — not just your laptop:
node --version
You're exposed if the output is anything other than v26.13.1, v24.22.3, v22.23.5, or newer on the same line. Also check these, since a developer machine's version proves nothing about what's deployed:
engines field in package.json
.nvmrc or .node-version files
Every FROM node: line in your Dockerfiles
The base image tag in your Kubernetes manifests or serverless runtime config
You're most at risk if your service terminates HTTPS or HTTP/2 directly inside Node.js. If a load balancer or reverse proxy ends TLS in front of you, the TLS-specific bugs are less relevant — but HTTP/2 between that proxy and your Node.js process can still reach the vulnerable code, so don't assume you're safe just because you sit behind nginx or a CDN.
How to fix it: the upgrade sequence
Here's the sequence I ran across client environments this week, in order:
Inventory every Node.js process — web servers, background workers, scheduled jobs, and anything running in CI.
Classify each by release line: 22.x, 24.x, 26.x, or end-of-life (20.x and 25.x get no patch at all).
Upgrade supported lines to 26.13.1, 24.22.3, or 22.23.5, or anything newer on the same line.
Rebuild Docker images with docker build --pull rather than restarting a container from a cached layer — the vulnerable runtime is baked into the image, not fetched at startup.
Restart the actual serving process, not just the build artifact. A long-running process keeps the old binary loaded in memory until it's killed.
Confirm the new version is live with node -v against the running process, not the Dockerfile.
# Before
FROM node:24.21.0-alpine
# After
FROM node:24.22.3-alpine
If you're still running an end-of-life line, this is also the forcing function to move. Node.js 20 and 25 are both end-of-life and receive no security fixes going forward, so patching in place isn't an option — only a line move is.
Regression-testing after the patch
Several fixes change TLS and HTTP/2 behavior at the edges, so I don't treat this as a drop-in upgrade without a check:
Re-run your HTTP/2 and HTTPS integration tests with the same proxy and protocol settings used in production.
If you use SNICallback, OCSPRequest, newSession, resumeSession, or per-host mutual TLS policies, test those paths specifically — the renegotiation and SNI fixes change how certificates are validated.
Review any handler that calls res.flushHeaders() before the body finishes and later echoes or persists the request body; that's the exact pattern behind CVE-2026-123864.
Watch error rates and memory for an hour after rollout, starting with one canary instance before a full deploy.
This is the same rollout discipline I use when I help clients harden a web app development project before launch — patch, test the specific code paths the patch touches, then canary before a full rollout, rather than trusting a green CI run alone.
Is this being actively exploited?
As of the November 11 advisory, Node.js reported no known exploitation of any of the 16 CVEs, and no public proof-of-concept code had surfaced for them yet. That's not a reason to wait. The October 2026 Node.js release that fixed the Node2Shell Brotli RCE (CVE-2026-111497) saw public proof-of-concept code appear within about a day of disclosure, and several of November's bugs are described in enough technical detail in the release notes to shorten that gap further.
Frequently asked questions
Does npm audit catch this Node.js vulnerability?
No. CVE-2026-123864 and the other 15 CVEs in this release live in the Node.js runtime binary itself, not in an npm package, so npm audit and tools like Dependabot won't flag it. You have to check the Node.js binary version directly with node --version on every host.
Am I affected if I use plain HTTP instead of HTTPS?
CVE-2026-123864, the private-key-leak bug, only affects HTTPS servers — plain node:http is not vulnerable to that specific issue. Several of the other CVEs, including the HTTP/2 teardown bugs, can still affect you over cleartext HTTP/2 if you use it, so check the per-CVE notes in the release before assuming you're clear.
Do I need to patch if I sit behind a load balancer that terminates TLS?
You're less exposed to the TLS-specific bugs, but the HTTP/2 bugs can still reach your Node.js process if the connection between your load balancer and Node.js uses HTTP/2, which is common with modern ingress controllers. Patch regardless; the upgrade carries no breaking changes for most apps.
What Node.js versions fix these CVEs?
Upgrade to 26.13.1 on the 26.x line, 24.22.3 on the 24.x line, or 22.23.5 on the 22.x line. Node.js 20.x and 25.x are end-of-life and will not receive a patch, so those need a line move, not just a version bump.
Will upgrading break my app?
These are security releases, so they carry only fixes and dependency bumps, not new features. The main behavioral changes are in TLS session resumption, SNI handling, and HTTP/2 memory accounting — test those specific paths if you use them, but a routine REST API with no custom TLS hooks should upgrade without surprises.
Key takeaways
Node.js shipped 16 CVEs on November 11, 2026, across the 22.x, 24.x, and 26.x lines, with seven rated High severity.
CVE-2026-123864 is the most serious: a TLS re-entrancy bug that can leak private keys and other users' requests into an HTTPS response body.
The fix lives in the Node.js binary, not a dependency, so npm audit won't catch it — check node --version on every host and container directly.
Patched versions are 26.13.1, 24.22.3, and 22.23.5; Node.js 20.x and 25.x are end-of-life and get no fix.
Rebuild Docker images with --pull, restart the actual serving process, and confirm the live version — a cached image or a long-running process keeps the vulnerable runtime active.
Regression-test TLS renegotiation, SNI, and HTTP/2 teardown paths after upgrading, since several fixes change behavior at those edges.
No public exploitation was reported at disclosure, but prior Node.js security releases have seen proof-of-concept code appear within about a day — don't treat this as low urgency.