Skip to content
jshacks.dev
Node.js

Node.js Security Release Fixes HTTP2 and TLS Server Bugs

Every CVE in the Node.js 22.23.5, 24.22.3 and 26.13.1 security release, which servers each one reaches, and the order to roll the upgrade out in.

7 min read
Summarize in AI
Flat illustration of a shield with a lock, a key and a password field, with the Node.js, Let's Encrypt, OWASP, OpenSSL and JSON Web Tokens logos.

The Node.js security release of 11 November 2026 shipped Node.js 22.23.5, 24.22.3 and 26.13.1, and the advisory lists seven High, six Medium and three Low issues. Almost all of them live in two places: the HTTP/2 implementation and TLS server handling. If your Node.js process speaks HTTP/2 or terminates TLS itself, this is not a release to leave for the next maintenance window. If it serves plain HTTP/1.1 behind a proxy and makes outbound requests, most of the list does not reach you, and the upgrade is still the right call because three of the fixes touch outbound HTTPS and proxy handling.

The worst issue in the batch, an HTTPS heap leak that can expose TLS private keys, has its own walkthrough in the CVE-2026-123864 post. This post covers the rest, grouped by what your server has to be doing for each one to matter.

Confirm what you are running

Read the version from the process that serves traffic, not from your shell. The fixed builds also bump llhttp to 9.4.4 on all three lines, which makes a quick fingerprint:

Shell
node -p "const v = process.versions; [v.node, v.llhttp, v.undici].join(' ')"

On a patched Node.js 24 the output is:

Text
24.22.3 9.4.4 7.30.2

An unpatched 24.22.2 prints an older llhttp and undici on the same line. The 26.13.1 release notes list undici 8.12.4 instead, and 22.23.5 updates llhttp and sqlite only. Builds published later on the same line, such as 24.23.0 and 26.14.0 from 30 November 2026, include every fix below. Node.js 20 and older are end of life and the advisory states that end-of-life versions are always affected.

HTTP/2 servers carry most of the risk

Seven of the sixteen CVEs are in node:http2. Several are reachable by any unauthenticated client against a default server, which is why the advisory rates most of them High.

CVESeverityLinesWhat a client can do
CVE-2026-123863High24, 26Abort the process through a failed assertion in session teardown
CVE-2026-123865High22, 24, 26Leak memory and file descriptors until the server runs out
CVE-2026-123866High22, 24, 26Receive freed response memory, including other connections' data
CVE-2026-123874High24, 26Corrupt memory through a use-after-free of Http2Stream
CVE-2026-123828Medium24, 26Trigger a one-byte heap overflow in altsvc()
CVE-2026-123868Medium24, 26Exhaust memory with data that maxSessionMemory never counts
CVE-2026-123875Medium22, 24, 26Crash the server by cancelling respondWithFile() downloads

Three of these deserve a closer look because their preconditions are common.

CVE-2026-123863 needs only "a default HTTP/2 server whose handler responds before the request body ends", over TLS or cleartext. A stream that still holds nghttp2 header buffers can outlive its session, and the destructor's CHECK_EQ(current_nghttp2_memory_, 0) then fails and aborts the process. The advisory notes it is a variant of CVE-2024-27983 that the earlier fix did not cover. A failed CHECK is not an exception you can catch, so there is nothing to wrap in try here.

CVE-2026-123866 is the data-exposure bug in the group. When a stream is torn down while a write is still backpressured, the response buffer is freed but a reference stays in use, so the socket receives freed or unrelated heap memory instead of the intended response. On 24 and 26 a remote peer can drive the teardown with RST_STREAM once the flow-control window change from 24.22.0 and 26.9.0 is present. On 22 it needs an application-side teardown, such as a per-stream idle timeout, which plenty of servers configure.

CVE-2026-123874 and CVE-2026-123875 both hit stream.respondWithFile() and stream.respondWithFD(). Serving static files directly from an HTTP/2 handler is the only precondition. The first is a use-after-free that can corrupt memory; the second is a null dereference that crashes the process after a few cancelled downloads. Both target a handler shaped like this one:

src/h2-static.mjsJavaScript
import { createSecureServer } from 'node:http2';
import { readFileSync } from 'node:fs';

const server = createSecureServer({
  key: readFileSync('certs/server-key.pem'),
  cert: readFileSync('certs/server-cert.pem'),
});

server.on('stream', (stream, headers) => {
  if (headers[':path'] === '/report.pdf') {
    stream.respondWithFile('public/report.pdf', {
      'content-type': 'application/pdf',
    });
    return;
  }
  stream.respond({ ':status': 404 });
  stream.end();
});

server.listen(8443, () => console.log('h2 on 8443'));
Text
h2 on 8443

The advisory gives no workaround for any of the HTTP/2 issues. If you cannot upgrade a public HTTP/2 Node.js server today, the practical stopgap is to put a proxy in front that terminates HTTP/2 and speaks HTTP/1.1 to Node.js, which takes node:http2 off the attack surface entirely. That costs you whatever you were using HTTP/2 for between the proxy and the app, which for most services is nothing.

TLS server bugs and two ways to bypass client certificates

Four TLS issues affect servers that terminate TLS in Node.js, and two of them are authentication bypasses for mutual TLS.

CVE-2026-126051 (High, 24 and 26) lets a remote client kill the process. It needs a TLS server that uses SNICallback, OCSPRequest, newSession, resumeSession or server.addContext(). Those hooks make OpenSSL defer a callback, and if a client hello and a socket FIN arrive in the same tick, the socket is destroyed before the deferred code runs. The result is an uncaught exception instead of an 'error' event. Any multi-domain server that picks certificates by SNI is in scope:

src/tls-sni.mjsJavaScript
import { createServer, createSecureContext } from 'node:tls';
import { readFileSync } from 'node:fs';

const contexts = {
  'api.example.test': createSecureContext({
    key: readFileSync('certs/api-key.pem'),
    cert: readFileSync('certs/api-cert.pem'),
  }),
};

const server = createServer({
  SNICallback(servername, cb) {
    cb(null, contexts[servername]);
  },
});

server.listen(8443, () => console.log('tls with SNI on 8443'));
Text
tls with SNI on 8443

CVE-2026-123872 (High, all three lines) is the more dangerous one for anyone relying on client certificates. Under TLS 1.2 renegotiation, a client authenticated for one host could change the servername and carry that authentication to a host with a stricter client-certificate policy. The fix lands as three commits in each release: renegotiation and HelloRetryRequest can no longer change SNI, session resumption can no longer change SNI, and resumption is disabled for mTLS servers that set no session id context.

CVE-2026-123867 (Medium, all three lines) is a quieter mTLS bypass. Calling server.addContext(host, { ca: protectedCA }) without a server certificate left the default client CA installed for that host, so a client trusted only by the default CA could complete mutual TLS to the protected host. If you used addContext() to tighten client CAs per host, check that each context also carries its own cert and key until you are on the fixed build.

Outbound HTTPS and proxy configuration

Three fixes reach code that makes requests rather than serving them.

CVE-2026-123877 (Medium, all lines) is a certificate validation bypass in https.Agent. An omitted ca and ca: [] produced the same session-cache key, so a TLS session authenticated under the default trust store could be reused by a later request that asked for a stricter policy, and that request reported authorized === true. Until you upgrade, give each trust policy its own agent, because the session cache lives on the agent:

src/agents.mjsJavaScript
import { Agent, request } from 'node:https';
import { readFileSync } from 'node:fs';

const publicAgent = new Agent({ keepAlive: true });
const internalAgent = new Agent({
  keepAlive: true,
  ca: [readFileSync('certs/internal-ca.pem')],
});

export function getInternal(path) {
  return request({ host: 'billing.internal.example.test', path, agent: internalAgent });
}

export function getPublic(path) {
  return request({ host: 'api.example.test', path, agent: publicAgent });
}

CVE-2026-123871 (Medium, all lines) printed proxy credentials in ERR_PROXY_INVALID_CONFIG messages on four error paths that the earlier fix for CVE-2026-48615 missed. If you use the built-in proxy support with user:password@ in the URL, search your logs and crash reports for that error code and rotate the proxy password if it appears.

Low severity and the Permission Model

The remaining issues only matter in narrower setups. CVE-2026-123862 makes zlib throw an uncatchable ERR_INTERNAL_ASSERTION when a stream is destroyed with a params() call pending, so a client that disconnects mid-compression can crash a process that changes compression level while streaming. Three issues affect the experimental Permission Model only: CVE-2026-123829 leaks the names of denied files through recursive fs.watch on macOS and Windows, CVE-2026-106071 lets a wildcard --allow-fs-read rule directly under the root match more than it should, and the release notes add CVE-2026-123873, a missing check on the heap snapshot destination. If you do not start Node.js with --permission, none of the three applies.

Upgrade order

Roll the release out in order of exposure, not in order of convenience.

  1. Public servers that terminate TLS in Node.js, or serve HTTP/2, on any line. These face the unauthenticated crash and memory-disclosure bugs. Rotate the TLS key afterwards if the server also matched the CVE-2026-123864 conditions.

  2. Services that rely on mutual TLS, SNICallback or addContext(), including internal ones, because the bypasses are aimed at exactly the hosts you trust least.

  3. Workers and clients that make outbound HTTPS calls with custom ca settings or authenticated proxies.

  4. Everything else, including CLIs and build images, on the normal schedule.

Rebuild container images rather than relying on a floating tag, and check the result with the process.versions line above inside the running container.

Also inSecurity
Share

Keep reading

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.