On this page
A malformed Brotli stream can make Node.js write past the end of a buffer while it decompresses, and most Node apps decompress Brotli without anyone deciding to. fetch() unpacks any response sent with Content-Encoding: br. Express 5 unpacks request bodies sent that way. axios asks servers for Brotli by default. The Node.js project fixed the bug as CVE-2026-111497 in its October 21, 2026 security release and rates it high, with remote code execution as the stated impact. Every supported line (22.x, 24.x, 26.x) is affected, and so is every end-of-life line.
Short answer: CVE-2026-111497 is a high-severity out-of-bounds write in the Brotli decoder compiled into Node.js. A malformed Brotli stream reaching fetch(), an Express 5 request body or zlib can corrupt memory, and the Node.js project lists remote code execution as the impact. Fixed in Node.js 22.23.4, 24.22.1 and 26.12.1 (October 21, 2026). Node 20 and older get no fix. CISA added it to the KEV catalog on October 27, 2026, with a November 10 due date.
This is our operator read of the Node.js October 2026 security advisory, the release notes and the two commits behind the fix. The CVE record and NVD entry were not public when we published.
Update 27 Oct 2026: CISA added CVE-2026-111497 to its Known Exploited Vulnerabilities catalog on 27 Oct, with a 10 Nov due date, a day after ELLIO recorded the first exploit attempt against Node.js 24.22.0. The fixes below are unchanged. Our KEV follow-up covers what that attack looked like and how to check whether your servers were hit.
How to fix
Upgrade the Node.js runtime. There is no npm package to bump: the decoder is compiled into the node binary.
# nvm
nvm install 24.22.1 # or 22.23.4, or 26.12.1
# Docker: pin the patched tag, rebuild, redeploy
FROM node:24.22.1-bookworm-slim # node:22.23.4-*, node:26.12.1-* also published
# Confirm what actually runs (inside the container, not on your laptop)
node -v
| You run | Upgrade to |
|---|---|
| 26.x | 26.12.1 (Current) |
| 24.x | 24.22.1 (LTS) |
| 22.x | 22.23.4 (LTS) |
| 20.x or older | No fix. Move to 22.x or 24.x. |
Node 20 is not out of scope. It is out of support, so it stays vulnerable. Vercel says projects still pinned to Node 20 on its platform must switch to 22.x or 24.x and redeploy, while its managed 22.x and 24.x runtimes get the patch without a settings change.
One operator check
The fix added a new decoder error, and Node exposes it as a constant. That gives you a one-line test that does not rely on reading version tables:
node -p "require('zlib').constants.BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH"
# -17 patched (22.23.4, 24.22.1, 26.12.1)
# undefined vulnerable
Run it in every image and CI runner you ship, since a laptop on the right version says nothing about a base image pulled in August. After you upgrade, a patched process rejects the bad stream with error code ERR__ERROR_FORMAT_BLOCK_SWITCH. Seeing that code in your logs means someone sent that shape of stream, or a server you fetch from is sending broken data. Both are worth a look.
Where your app decompresses Brotli
Node's core http module does not decompress anything on its own. Vercel's bulletin puts it plainly: you are exposed when your code, or a library it uses, decompresses Brotli data an attacker controls. In practice that list is long:
fetch(). Node's built-in fetch comes from undici. Its fetch code pipes anybrresponse throughzlib.createBrotliDecompress(). A server you call, or anything that can sit in the middle of that call, chooses the encoding.- Express 5 and body-parser 2.x. body-parser added Brotli in 2.0.0 and decompresses request bodies by default. Express 5.x depends on body-parser 2.x, so
express.json()andexpress.urlencoded()accept aContent-Encoding: brupload from anyone who can reach the route. - axios. In Node it sends
Accept-Encoding: gzip, compress, deflate, brand decompresses the answer. - Self-hosted Next.js. Vercel says Next.js does not block Brotli responses in image optimization, so upstream image hosts are part of the path.
- Your own
zlib.brotliDecompress(),brotliDecompressSync()orcreateBrotliDecompress()calls, for example in a proxy, crawler, webhook receiver or file upload pipeline.
Upgrading undici, axios or body-parser in package.json does nothing for this bug. They all call the same decoder inside the runtime.
What the patch changed
The fix is upstream Brotli commit 0ed4268a, "Detect and report invalid stream earlier," which Node cherry-picked into deps/brotli. Brotli streams can switch between block types mid-stream. When a stream declares only one block type and then asks for a switch anyway, the decoder's DecodeBlockTypeAndLength noticed and returned false. On the fast decoding path, though, the block-switch wrappers were void functions, so that failure was thrown away and decoding carried on. The patch turns those wrappers into functions that return an error, adds error code -17 (BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH), and stops processing when it fires. A second Node commit exposes the constant and adds a 22-byte regression input to Node's test suite.
Google wrote that commit in February 2026. Brotli shipped it as a security release, 1.2.1 with 1.1.1 and 1.0.10 alongside, on October 21. Anything else that bundles its own copy of the Brotli decoder (Python bindings, native modules, other runtimes) needs its own update. This Node release only covers Node.
Update 26 Oct 2026: .NET ships its own Brotli fix
Microsoft shipped out-of-band .NET updates on Sunday, October 25, and one of them is this same bug. The .NET advisory for CVE-2026-111497 rates it high (CVSS 8.1) and says a crafted Brotli stream can read or corrupt process memory, leading to information disclosure, denial of service or elevation of privilege. Patching Node does nothing for a .NET service, and patching the OS Brotli package does nothing for either. Each runtime ships its own decoder.
Upgrade to .NET 8.0.33, 9.0.22 or 10.0.14 (11.0 RC 3 for the preview). Then check what each host and container actually loads:
dotnet --list-runtimes
# Microsoft.NETCore.App 8.0.33 / 9.0.22 / 10.0.14 or later = patched
Microsoft also lists the NativeAOT and per-platform runtime packages as affected. An app published self-contained or as NativeAOT carries its own copy of the decoder, so it needs a rebuild and redeploy against the patched SDK. Updating the shared runtime on the server does not reach it.
The .NET exposure is narrower than Node's. ASP.NET Core and HttpClient do not decompress Brotli out of the box, and .NET Framework is not affected. You are in scope only if your code opts in, so search for the three ways to do that:
grep -rnE "AddRequestDecompression|DecompressionMethods\.(Brotli|All)|BrotliStream|BrotliDecoder" --include=*.cs .
No hits means no attacker-reachable Brotli decoding in your own code, though a dependency can still call those APIs. If you do get hits and cannot patch today, Microsoft's interim advice is to remove br from an existing request decompression setup or drop DecompressionMethods.Brotli from an existing handler. Do not add decompression config where you had none to begin with. Microsoft warns that turning on automatic decompression brings its own denial-of-service risk.
The same release corrects two fixes from October 13 that were incomplete: CVE-2026-70197 (Windows sockets out-of-bounds write) and CVE-2026-102870 (Blazor WebAssembly debugger code injection, where the standalone Server and DevServer packages must be bumped themselves). It also fixes CVE-2026-114148, wrong file ownership in Linux ASP.NET Core tarballs. Details are in Microsoft's out-of-band rollup. BleepingComputer reports public proof-of-concept code for the Brotli bug, while Microsoft scores exploit maturity as unproven. There are still no reports of exploitation in the wild, and it is not in CISA KEV as of October 26.
Update 26 Oct 2026: git clone over HTTPS reaches the bug too
Git's HTTPS transport is in scope. Harry Sintonen pointed out on oss-security that git-remote-https is vulnerable to CVE-2026-111497 whenever libcurl is built with Brotli support, which he says is the case for most distros. Git tells libcurl to accept every content encoding it supports, Brotli included, so a hostile or compromised HTTPS remote can send a crafted Content-Encoding: br response to anyone who clones or fetches from it. That includes a coding agent cloning a repo URL it found in an issue, a README or a prompt.
This fix is not in Node, .NET or Git itself. Distro builds of libcurl link the shared system Brotli library, so the fix is the OS package. On Debian that is libbrotli1, fixed in 1.0.9-2+deb12u1 (bookworm) and 1.1.0-2+deb13u1 (trixie) per the Debian security tracker. Upstream fixed versions are 1.0.10, 1.1.1 and 1.2.1.
# Does this host's git pull in the system Brotli decoder?
ldd "$(git --exec-path)/git-remote-https" | grep -i brotli
# Debian / Ubuntu: check the package, not curl -V
dpkg -l libbrotli1
Do not trust the version string in curl -V. A patched Debian trixie host still prints brotli/1.1.0 there, because distros backport the fix without changing the upstream number. Check the package version against your distro's advisory, then restart long-running processes so they load the new library. Rebuild container images and CI runners, since they carry their own copy of the package.
When you search your own code for libcurl clients that accept Brotli, Sintonen notes that older code uses CURLOPT_ENCODING, the legacy alias of CURLOPT_ACCEPT_ENCODING, so grep for both. As of October 26 there are still no reports of exploitation in the wild, and the CVE is not in CISA KEV.
Update 26 Oct 2026: PHP rebuilds its Windows packages
PHP on Windows ships its own copy of Brotli, so it needed its own fix. On October 26 the PHP team published rebuilt Windows packages (8.5.12-1, 8.4.27-1, 8.3.36-1 and 8.2.35-1) that bundle Brotli 1.2.1. According to the PHP team, the vulnerable decoder is reachable in those builds through the cURL extension when automatic HTTP response decompression is turned on. That is off by default in cURL, but applications and HTTP client libraries can switch it on, for example by setting CURLOPT_ACCEPT_ENCODING to an empty string so cURL accepts every encoding it supports.
The -1 suffix marks a Windows rebuild with updated dependencies. The PHP source and the runtime version are unchanged, so php -v prints the same number before and after. Check the package you installed, not the version string, and restart PHP-FPM, IIS FastCGI pools or any long-running worker afterwards. Linux PHP builds use the system libcurl and Brotli, so the distro package fix described above covers them.
Who is not in scope
- Code that only compresses. The patch touches the decoder (
c/dec/decode.c) only.brotliCompress()and response compression middleware are not the entry point. - Apps that never decode attacker-reachable Brotli. A service that takes no compressed uploads and only fetches from servers you run is far less exposed. Once a third-party API or webhook is in the mix, few apps can claim the second part.
- Vercel-managed functions on 22.x or 24.x. Vercel says it is rolling the patched runtimes itself. External backends, containers you build and CI runners are still yours to patch.
- Browsers. Front-end JavaScript uses the browser's own Brotli, not Node's.
What this is not
It is not a confirmed RCE against stock Node in the wild. No exploitation has been reported and it is not in the CISA KEV catalog as of publication. Sources disagree on how far the public work goes: The Hacker News reports that a proof of concept published October 22 got code execution only on a deliberately weakened build, with a crash and a limited memory read on a standard one, while Vercel's bulletin says researchers showed memory disclosure and command execution on unpatched 22.x, 24.x and 26.x. A crash is still a remote denial of service on any route that decodes Brotli. Treat it as a patch-today bug, not a wait-for-NVD bug.
If you cannot upgrade today
The Node advisory offers no workaround. You can narrow the inbound side:
- Pass
{ inflate: false }toexpress.json(),express.urlencoded(),express.text()andexpress.raw(). body-parser then rejects compressed bodies with a 415 instead of decoding them. - Drop or reject request bodies with
Content-Encoding: brat your proxy or load balancer. Vercel says its WAF already blocks the inbound pattern for traffic through its network.
The outbound side has no clean lever. Sending your own Accept-Encoding without br asks a server not to use Brotli, but undici's fetch decodes whatever Content-Encoding the response claims, so a hostile server can ignore the request. Only the runtime upgrade covers responses you fetch.
Where HOL Guard fits
HOL Guard pauses risky actions by AI coding agents on developer machines. It does not patch the Node.js runtime or filter Brotli streams, so the fix is still the upgrade. We track sources, timeline and scope for this issue on the HOL Guard security campaign page for CVE-2026-111497.
The rest of the October 21 release
The same releases fix nine more CVEs. The ones worth reading if you run TLS clients against IP addresses or resolve user-supplied names:
- CVE-2026-106069 and CVE-2026-105483 (high): TLS certificate hostname checks bypassed when a host is a non-canonical IP or an IP written in fullwidth digits. CVE-2026-105483 affects 24.x and 26.x only.
- CVE-2026-105482 (high):
dns.resolvetruncated names at an embedded NUL byte. - CVE-2026-106074 (medium):
crypto.randomUUID()andrandomInt()repeat the same values in every process started from a user-land startup snapshot or single executable application. - CVE-2026-105481 and CVE-2026-106072 (medium), plus three low-severity issues in
ZipFileand the Permission Model.
The release also blocks the eight compromised eMudhra intermediate keys, which we covered in our eMudhra CA key compromise write-up, and moves bundled undici to 7.30.1 on 24.x (6.29.1 on 22.x). For the earlier undici WebSocket issue, see our undici permessage-deflate write-up. One upgrade covers all of it.
What do people ask about CVE-2026-111497?
What is CVE-2026-111497?
An out-of-bounds write in the Brotli decoder built into Node.js. fetch() decodes any response sent with Content-Encoding: br, Express 5 decodes request bodies sent that way and axios asks for Brotli by default, so most Node apps decode Brotli without opting in.
Which Node.js versions fix CVE-2026-111497?
Node.js 26.12.1, 24.22.1 (LTS) and 22.23.4 (LTS). Node 20 and older are end of life and stay vulnerable, so move to 22.x or 24.x. There is no npm package to bump; check the runtime with node -v inside the container.
Is CVE-2026-111497 exploited?
Yes. CISA added CVE-2026-111497 to the Known Exploited Vulnerabilities catalog on October 27, 2026, with a November 10 due date, a day after ELLIO recorded the first exploit attempt against Node.js 24.22.0.
Does axios or Express need an update for CVE-2026-111497?
No package update fixes it. The bug is in the node binary, so upgrade the runtime. axios and Express 5 only matter because they cause Brotli to be decoded.
Is there a workaround for CVE-2026-111497?
The Node advisory offers none. You can narrow the inbound side by passing { inflate: false } to Express body parsers and rejecting Content-Encoding: br request bodies at your proxy. Responses you fetch are only covered by the runtime upgrade.
Related coverage
- CVE-2026-111497 KEV follow-up: what the Node2Shell exploit attempt looked like and how to check your servers
- body-parser CVE-2026-111181: one gzip POST crashes Express
- Next.js 16.4.1 and 15.5.28: the October 2026 security update for self-hosted Next.js servers
References
- Node.js: Wednesday, October 21, 2026 Security Releases
- Node.js 24.22.1 release notes, 22.23.4, 26.12.1
- nodejs/node 49dff6f57a: deps: brotli: cherry-pick 0ed4268a4401abcb44720963
- nodejs/node b5f41529df: src: expose BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH
- Brotli 1.2.1 changelog
- Vercel: Node.js security advisory, Brotli decoder RCE (CVE-2026-111497)
- The Hacker News coverage
- CVE-2026-111497 record (not yet published at time of writing)
- Microsoft: .NET Brotli decoder advisory for CVE-2026-111497 (25 Oct out-of-band update)
- oss-security: Brotli CVE-2026-111497 and git-remote-https (Harry Sintonen, 26 Oct)
- Debian security tracker: CVE-2026-111497
- PHP: Updated PHP Windows builds for Brotli security fix (26 Oct)