On 21 October, the Node.js project shipped three emergency releases. The reason was a bug that had nothing to do with JavaScript, web frameworks or npm packages: a flaw in Brotli, the compression format your browser uses to download most websites faster. Researchers named it Node2Shell. Its official name is CVE-2026-111497.
Six days later, the US cyber agency CISA put it on its list of vulnerabilities known to be exploited. Since then the story has become wider and more interesting than the name suggests, because the same buggy code is baked into .NET, Python HTTP clients, Bun, Envoy, Istio and more. This briefing covers what is actually known, what is still unproven, and the steps worth taking this week.
The one-line version: update Node.js to 22.23.4,
24.22.1 or 26.12.1 (or newer in your line), rebuild every
container image that embeds Node, and restart everything. Updating npm packages does not
fix this, because the decoder lives inside the runtime itself. Node 20, 23 and 25 are end-of-life
and get no fix.
What is Node2Shell?
Node2Shell is the most common nickname for CVE-2026-111497, an out-of-bounds write in Google's open-source Brotli decoder. You will also see it called HTTP2Shell, Brotli2Shell and Broccoli2Shell: same bug, different headlines. Google, which issued the CVE, scores it CVSS v4.0 9.2 (critical). NIST's database lists 9.8 under the older CVSS 3.1 scale. The Node.js project itself rates it high. The flaw was credited to OpenAI's Codex Security team, one more in a growing list of bugs found with AI help.
In plain English: Brotli reads a stream of compressed bytes and rebuilds the original data. The stream can contain a "block switch" instruction. If a stream declares that it has only one block type, a switch is invalid and the decoder should stop with an error. The vulnerable code instead treated it as "I need more input", so the caller kept feeding it bytes, and the decoder kept writing them into an eight-byte internal buffer, past its end. That corrupts memory next to it. Depending on the build and what the attacker does next, the result can be a crash, a leak of process memory, or code execution as the user your app runs as. The upstream fix is tiny: fail immediately on that invalid switch.
The part people miss: it works in both directions
Being exposed takes two ingredients: a vulnerable decoder and attacker-controlled Brotli data reaching it. That can happen two ways:
- Inbound. A client sends a request with
Content-Encoding: brto a server that decompresses it. Express 5 with body-parser 2 does exactly that by default forexpress.json(),raw(),text()andurlencoded(), because theirinflateoption is on. Researchers also reproduced it against Koa 3 and against a barenode:httpserver that callsnode:zlib. A bare Node server that does not decode bodies is not exposed on its own. - Outbound. Your code fetches something from a server the attacker controls, and the HTTP client decodes the reply for you. Node's built-in
fetch()does this automatically. Webhook senders, link-preview features, crawlers, "import from URL" buttons and AI agents with a web-fetch tool all live on this path.
Who is affected?
Every supported Node.js release line: 22.x before 22.23.4, 24.x before 24.22.1 and 26.x before 26.12.1. End-of-life lines (20.x, 23.x, 25.x and older) are affected and will never be patched. But the Brotli library is everywhere, so the list is much longer than Node.js. Versions of Google's Brotli from 1.0.3 through 1.2.0 are vulnerable; the fixed releases are 1.0.10, 1.1.1 and 1.2.1.
| Software | How it is reached | Fixed in |
|---|---|---|
| Node.js | node:zlib, fetch() responses, body-parsing middleware | 22.23.4, 24.22.1, 26.12.1 |
| Bun | Bundled decoder | 1.4.4 |
| .NET | BrotliStream, HttpClient, ASP.NET Core request decompression | 8.0.33, 9.0.22, 10.0.14 (.NET Framework not affected) |
| Python | urllib3, requests, httpx, aiohttp, via the brotli or brotlicffi package | brotli 1.2.1, brotlicffi 1.2.1.0 |
| Envoy / Istio | Brotli decompressor filter | Envoy 1.36.12, 1.37.8, 1.38.6, 1.39.3, 1.40.0; Istio 1.29.9, 1.30.6, 1.31.2 |
| FrankenPHP static binaries | PHP brotli decoder (also tracked as CVE-2026-128014) | 1.13.2 (1.8.0 to 1.13.1 affected) |
| PHP for Windows | Bundled Brotli | 8.2.35-1, 8.3.36-1, 8.4.27-1, 8.5.12-1 |
| Linux distributions | System libbrotli | Vendor packages, e.g. Debian bookworm 1.0.9-2+deb12u1, trixie 1.1.0-2+deb13u1 |
Other products that bundle the decoder have been named in vendor and government advisories, including PowerShell, ClickHouse, Apache Arrow, DuckDB, p7zip and Palo Alto's PAN-OS. Canada's Cyber Centre published an alert (AL26-027) covering the family. As with any "bundled library" bug, a vulnerable version number alone does not prove you can be attacked: untrusted Brotli data has to reach the decoder. But you cannot reason about that until you have found every copy.
The timeline
- 27 February 2026 — the fix is committed to Google's public Brotli repository with no release and no advisory. The commit message is just "Detect and report invalid stream earlier".
- Early October — Envoy Proxy and Istio ship fixed releases without naming the flaw.
- 21 October — coordinated disclosure. Node.js publishes 22.23.4, 24.22.1 and 26.12.1; Google releases Brotli 1.2.1, 1.1.1 and 1.0.10.
- 22 October — the CVE record is published and patched Python packages reach PyPI. Imperva's red team shows code execution on the official Node.js 24.22.0 arm64 image, with multiple attempts.
- 23 October — CISA's enrichment of the CVE record rates exploitation as "active" and automation as "no".
- 25 October — Microsoft publishes .NET updates. ELLIO shows code execution on stock x86-64 Node.js 24.22.0 builds with memory randomisation switched on.
- 26 October — ELLIO's sensors record a 23 MB Brotli request aimed at Node.js 24.22.0 on x86-64: the first in-the-wild attempt they analysed.
- 27 October — CISA adds CVE-2026-111497 to its Known Exploited Vulnerabilities (KEV) catalogue, with a 10 November deadline for US federal agencies.
- 13 November — the FrankenPHP static-binary exposure is published as CVE-2026-128014; fixed in FrankenPHP 1.13.2.
Is Node2Shell being exploited?
Yes and no, and the difference matters. "On the KEV list" means CISA has evidence of exploitation. It does not mean your server will be taken over by the first request.
- Working code execution exists. Imperva and ELLIO both demonstrated shells against official, unmodified Node.js 24.22.0 builds: a plain
node:httpserver, Express 5, Koa 3 and the official Docker image. Public proof-of-concept code is on GitHub. - It is not a universal skeleton key. The exploit needs a memory offset that is specific to each Node.js build. The offset for 24.22.0 gave nothing in 10,000 attempts against 22.23.3 and 26.12.0, and most attempts against Express crashed the worker instead of returning a shell. A crash, in other words, is far more likely than a break-in.
- The first wild attempt failed. The 26 October request ELLIO caught copied public tooling but scored zero shells in 50 attempts in their lab; they judged it a first-generation attempt with a broken final stage. SentinelOne noted that, as of 29 October, it had seen no public report of a confirmed compromise of a production system.
- Denial of service is the realistic worst case today. Anything internet-facing that decodes untrusted Brotli can be knocked over with a single request. CSA's research note recommends planning as if code execution is possible, because exploits tend to get more reliable over time.
One more detail from ELLIO's lab: where a worker crashed and the system kept a core dump, the dump contained whatever was in memory at that moment, including other users' session tokens. Failed attacks can still leak.
What the researchers are saying
Akamai stressed how ordinary the exposed code paths are: every supported Node.js line was affected,
and fetch() and Express 5 expose applications that never call the Brotli API directly.
Tenable and the Cloud Security Alliance both pointed out the patching trap: updating the operating
system's Brotli library does not fix Node.js, Bun, self-contained .NET apps or container images,
each of which carries its own copy and needs a fixed release, a rebuild and a restart.
The Cloud Security Alliance also highlighted the eight-month gap between the quiet upstream fix and
the public advisory, and noted that nothing in the sources it reviewed shows anyone abused that
window. On the outbound side, Tenable's guidance is that removing br from the
Accept-Encoding header is not enough on the client; Orca makes the same point about
fetch(). Brotli decoding has to be avoided or patched, not just not requested.
What made this one tricky — analysis, not confirmed findings
What follows is our reading of the public facts, clearly labelled as analysis. Treat it as perspective, not as an official post-mortem.
1. Nobody wrote the vulnerable code in their app
Most developers never typed "Brotli". A framework decompresses the request body, an HTTP client decodes the response, and the application only ever sees plain text. The risky step is invisible, which is why "we don't use Brotli" is the most common and most wrong first reaction.
2. The fix is not where you normally patch
Dependency scanners watch your package.json and lock files. This decoder is compiled
into the Node.js binary. Bumping an npm package does nothing; only a new runtime, and a rebuilt
image, removes it. The same is true of NativeAOT .NET apps and vendored copies in Python wheels.
3. A fix that sat in public for months
A one-line fix landed in a public repository in February, labelled as a minor stream-validation change. Defenders had no reason to prioritise it; anyone reading commits closely had a hint. There is no evidence it was abused in that window, but it is a reminder that "no CVE yet" is not the same as "no information".
4. Outbound attack surface is easy to forget
Teams think about what clients can send them. Fewer think about what a URL they fetch can send back. Link previews, webhook testers, "summarise this page" features and AI agents with browsing tools all pull data from servers the user, and therefore an attacker, chooses.
Red: why attackers like this one
- No authentication. One HTTP request to any Node endpoint that decodes request bodies, or one link to something your server will fetch.
- Huge, mostly invisible install base across runtimes, proxies, clients and appliances.
- Public exploit code and detailed write-ups, so the hard work of finding the right offset per build is being shared.
- Official Node.js builds are not position-independent executables, which is why memory randomisation helps less than people assume.
- Even failed attempts crash workers, which means cheap denial of service against anything unpatched.
Blue: Node2Shell remediation, step by step
Step 1 — Find every runtime that carries a Brotli decoder
Start with the internet-facing and the services that fetch URLs. Check the runtime that actually serves traffic, not the one on your laptop, and include container images, CI-built images, serverless bundles and vendor appliances.
# Node.js version on this machine (run it inside each service's environment)
node -p "process.version"
# A container image, without starting your app
docker run --rm --entrypoint node your-image:tag -p "process.version"
# Python: the packages that urllib3 / requests / httpx pick up automatically
pip show brotli brotlicffi
# .NET: shared runtimes installed (self-contained apps carry their own, so rebuild them)
dotnet --list-runtimes
# Debian / Ubuntu: the system library, relevant to anything that links it dynamically
dpkg -l | grep -i brotli
Rely on the runtime's release version, not on process.versions.brotli:
maintainers can backport a fix into a bundled library without changing its reported version
number. Also check whether untrusted Brotli can actually reach the decoder: search your code for
brotliDecompress, express.json, body-parser,
fetch(, and any service that takes a URL from a user.
Step 2 — Patch the runtime, rebuild, restart
- Move Node.js to 22.23.4, 24.22.1 or 26.12.1 or newer in your line. On 20.x, 23.x or 25.x, move to a supported line; there is no patch coming.
- Rebuild and redeploy container images. A patched base image does nothing until your application image is rebuilt on it. Pull fresh layers rather than reusing a cache.
- Restart every process. Long-running workers keep the old decoder in memory.
- Update the other copies you found: Python
brotli1.2.1 /brotlicffi1.2.1.0, .NET 8.0.33 / 9.0.22 / 10.0.14 (rebuild self-contained and NativeAOT apps), Bun 1.4.4, Envoy and Istio releases from the table above, FrankenPHP 1.13.2. - On managed platforms, check the runtime version your provider is actually running for your functions and services, and ask for it in writing if the dashboard does not say.
# Use 22.23.4, 24.22.1, 26.12.1 or newer in the same line
FROM node:24.22.1-slim
# Then rebuild from fresh layers:
# docker build --pull --no-cache -t your-image:tag .
Step 3 — If you cannot patch today: reduce exposure
Be clear-eyed: Node.js lists no workaround for this flaw, and vendors say the same. What follows only closes known paths and buys you time.
# In the server or location block in front of your Node app.
# Few public APIs need compressed uploads at all.
if ($http_content_encoding ~* "(^|,)\s*br\s*(;|,|$)") {
return 415;
}
// Compressed request bodies are rejected with 415 (this also rejects gzip and deflate uploads).
app.use(express.json({ inflate: false }));
- Limit what server-side code can fetch. Allow-list destinations for link previews, webhooks and AI web tools. Outbound traffic to arbitrary hosts is the path a proxy rule cannot cover, and stripping
brfromAccept-Encodingis not a reliable guard. - Contain the blast radius. Run Node as a non-root user, with a read-only filesystem and no secrets in environment variables of workers that fetch untrusted URLs. Consider isolating those fetchers in their own low-privilege service.
- Turn off core dumps on production workers, or keep them encrypted and access-controlled. A crashed worker's dump can hold session tokens and keys.
- Use a WAF or runtime agent rule that blocks
Content-Encoding: bron routes that should not receive it. Several vendors have published signatures; treat them as a seatbelt.
None of this is a fix. Request filters block the inbound path you know about, not the outbound one, and not the next product that bundles the same decoder. Patching and rebuilding is the only complete remediation.
Step 4 — Assume you might have been tried, and look
Attempts are in the wild, mostly failing. A failed attempt looks like a crash; a successful one looks like nothing. Hunt from the disclosure date (21 October) forward, and earlier where your logs allow.
- Request logs and WAF logs:
Content-Encoding: bron POST, PUT or PATCH requests, especially with very large bodies. The exploit ELLIO caught was a 23 MB request. - Crashes: bursts of Node worker restarts or kernel segmentation faults, particularly clustered around the same sources or the same endpoint.
- Processes: a Node process spawning
sh,bash,curlorwget. That is the strongest single sign of success. - Network: outbound connections from application servers to hosts they have never contacted before.
- Core dumps: any dumps from this period are sensitive. Treat their contents as exposed.
# Segmentation faults involving node since disclosure
journalctl -k --since 2026-10-21 | grep -i segfault
# Core dumps that may contain secrets
coredumpctl list --since 2026-10-21
# Shells running as children of node processes
ps -eo user,pid,ppid,cmd --forest | grep -A2 '[n]ode' | grep -E ' (sh|bash|dash) '
Correlate rather than react to a single signal: crashes happen for plenty of boring reasons. If you find evidence of compromise, isolate the host, preserve logs and disk images, rotate every secret the process could read, and rebuild from a known-good image instead of cleaning in place.
If you build with Node, Express or serverless
- Check your runtime version today, in production, not in
package.json. Yourenginesfield says what you wish for; the container says what you run. - Bump the base image and redeploy. A CI pipeline that rebuilds nightly from
node:24-slimmay already have picked it up; one that reuses cached layers has not. - Review any feature that fetches a user-supplied URL. Treat it as an untrusted-input parser, because it now is one.
- Check Python and .NET side services too. A Python worker that calls
requestswithbrotliinstalled is on the same list. - If a platform runs it for you, confirm the platform's runtime has been patched rather than assuming so.
The lesson for everyone else
Know your runtimes and what is bundled in them. As with PHP2Shell last month, the question that mattered was not "is our application vulnerable?" but "where do we run this runtime, which version, and who owns the rebuild?" Software bills of materials exist to answer exactly that. We made a related point in our PHP2Shell briefing.
Updating the OS is not updating the application. Statically linked and bundled libraries ignore your package manager. Patch plans need a line item for "rebuild everything that embeds the library".
Decompression is parsing. Any code that turns attacker-supplied bytes into something bigger is a parser, and parsers in memory-unsafe languages are where bugs like this live. Limit what you decode, how large it can be, and from whom.
Quiet fixes are signals. When a widely used library lands a "stream validation" commit, somebody is already reading it. Subscribing to the release notes of the handful of libraries your business really depends on is cheap insurance.
Your one action this week: list every service you run that uses Node.js, Bun, .NET, Python HTTP clients or Envoy/Istio, and write the patched version and the date it was rebuilt next to each one. Any line you cannot fill in is your exposure.
Node2Shell FAQ
What is Node2Shell?
The nickname for CVE-2026-111497, an out-of-bounds write in the Brotli decoder bundled with Node.js and many other products. Google rates it CVSS v4.0 9.2. A crafted Brotli stream can crash the process, leak memory and, on some builds, execute code.
Which Node.js versions fix Node2Shell?
22.23.4, 24.22.1 and 26.12.1, released on 21 October 2026. Node 20, 23 and 25 are end-of-life and get no fix. Rebuild every container image, because each embeds its own copy.
Am I affected if my code never uses Brotli?
Possibly. Express 5 with body-parser 2 decodes Content-Encoding: br bodies by default,
and fetch() decodes Brotli responses automatically. A bare Node server that does not
decode request bodies is not exposed on its own.
Is there a workaround if I cannot patch?
Only partial ones: reject Content-Encoding: br at the proxy, set inflate: false
in body-parser, restrict outbound fetch destinations, run as an unprivileged user and disable core
dumps. Stripping br from Accept-Encoding does not reliably protect
fetch(). Patching is the real fix.
Is it being exploited?
CISA lists it as exploited (KEV, 27 October 2026). The first wild attempt ELLIO analysed failed in their tests, and no confirmed production compromise had been publicly reported as of late October, but working exploits exist for stock Node.js 24.22.0 builds and crashes are easy to trigger.
Sources
- NIST NVD — CVE-2026-111497
- Akamai — Inside Node2Shell: a closer look at CVE-2026-111497
- ELLIO — Node2Shell (CVE-2026-111497) RCE analysis
- Cloud Security Alliance — Brotli2Shell: a compression library flaw becomes cross-runtime RCE
- FortiGuard Labs — Node2Shell outbreak alert
- SentinelOne — Stopping Node2Shell
- Canadian Centre for Cyber Security — AL26-027, critical vulnerability impacting Google Brotli
- Wiz — CVE-2026-111497 impact, exploitability and mitigation
- Brandefense — CVE-2026-111497: Node.js Brotli RCE, fix status
- Orca Security — CVE-2026-111497: Node.js Brotli decoder RCE
- SecureLayer7 — What is Node2Shell (CVE-2026-111497)?
- ZEST Security — HTTP2Shell / Node2Shell: find every Brotli copy
Disclaimer
This analysis was written by Haisham Saeed and is based purely on information already in the public domain — the official advisories, vendor research and news reporting listed under Sources above. It draws on no confidential, internal or non-public material, and the author has no involvement in the discovery, disclosure or remediation of this vulnerability.
Sections labelled as analysis are the author's own interpretation of those public facts, not official findings. Exploitation reports from vendors generally measure attempts and lab demonstrations, not confirmed compromises, and sources disagree on some details, such as the exact date CISA listed the flaw in its catalogue. Mention of a vendor or product is not an endorsement, and nothing here should be read as an allegation of fault against any named or unnamed organisation.
The commands and configuration shown are illustrative starting points and must be adapted and tested for your environment; always follow the official Node.js advisory and your vendor's guidance. This is a developing story. Version numbers and figures reflect what had been stated publicly as of 26 November 2026 and may change. The post is published for security awareness and education, and is not legal, financial or formal security advice for your specific situation.