Node2Shell, HTTP2Shell, Broccoli2Shell: one bug, three names
On October 21, 2026, the Node.js project shipped an urgent security release. Since then the same vulnerability has already changed names a few times: first Node2Shell, then Python2Shell, HTTP2Shell, and Broccoli2Shell. It is one and the same bug: CVE-2026-111497, an out-of-bounds write in the Brotli decoder — a C library bundled in dozens of products. The names are misleading: it is not about HTTP/2, and not only about Node. Here is how the bug works, where it really lives now, and what you need to patch.
What is actually going on
The flaw lives in Google's original Brotli C library, versions 1.0.3 through 1.2.0, on all platforms (CWE-252 unchecked return value → CWE-787 OOB write). An attacker sends a carefully crafted Brotli stream. The decoder reaches a block transition that the stream's own structure makes impossible. In the vulnerable code the decoder reads that condition as "need more input" and continues in an invalid internal state. The result: a write past the end of a small internal buffer, which can corrupt adjacent decoder memory.
It can lead to a crash, a memory leak, or remote code execution. Google scores the flaw 9.2 (Critical) under CVSS v4; Node.js calls it High; Red Hat has rated it Important so far.
Heads up: a running process keeps the old decoder until you restart it. And a container image keeps it until you rebuild on a patched base and redeploy. Upgrading is therefore only enough if you also rebuild your processes and images.
Why the names keep changing
The names follow the timeline of the disclosure, not different bugs:
- Node2Shell — the name Imperva Red Team gave it after they demonstrated RCE on a stock Node.js 24.22.0 image on October 21. Node.js shipped the first fix, hence the name.
- Python2Shell / HTTP2Shell — two days later it turned out the PyPI packages
Brotliandbrotlicffialso bundle the vulnerable decoder. The name changed to HTTP2Shell because the flaw lives in the upstream Brotli library, not in any specific runtime. (The "HTTP2" in the name has nothing to do with the HTTP/2 protocol — a common misconception.) - Broccoli2Shell — an informal nickname (broccoli ≈ brotli) with its own recall page that maintains the full version-impact inventory.
In short: one bug in one C file, reached by everything that compiles the Brotli decoder. The names are annotations on a timeline, not different CVEs.
Both sides of the HTTP exchange
A service can meet Brotli data on either side of an HTTP exchange: inbound (middleware decompresses a request body with Content-Encoding: br) and outbound (an app fetches a compressed response via a fetch-class call). Both paths feed untrusted data into the same bundled decoder. Express and body-parser do not contain the bug — they are merely routes to it, so upgrading them does not help.
What has been verified
Imperva's RCE on Node.js 24.22.0 (Linux arm64) is the only confirmed code execution on a standard, uninstrumented build. The PoC needed no debugger and no special build, but it did not succeed on every attempt; it took multiple tries. On the fixed release 24.22.1 the same inputs were rejected. Other architectures and the 22.x/26.x lines were not tested by Imperva. CISA KEV had not listed it as of October 24; no in-the-wild exploitation was reported by that date.
Where the bug really lives now — beyond Node and Python
During the first week the remaining exposure moved from the two big runtimes into software that ships a private copy of the Brotli decoder:
- .NET (8.0, 9.0, 10.0 before the fix) — the largest open population; BrotliDecoder, BrotliStream and automatic decompression in HttpClient and ASP.NET Core
- Bun (up to 1.4.3) — fixed in 1.4.4
- Envoy and Istio (only when the Brotli decompressor is configured)
- DuckDB, ClickHouse, Apache Arrow (bundled 1.0.9), v8-jsi, 7-Zip-zstd, p7zip, EDK II (firmware), woff2 (font builds) — most still unpatched as of October 25
Key difference: some of all these copies decode input that never crosses HTTP — Parquet files, fonts, archives and firmware images. That moves the attack surface from "who can send my server a request" to "who can hand my pipeline a file". A WAF that only covers inbound HTTP misses that route.
Patch overview (as of October 25)
| Product | Affected | Fixed in |
|---|---|---|
| Google Brotli (C) | 1.0.3 – 1.2.0 | 1.0.10, 1.1.1, 1.2.1 |
| Node.js 26 | below 26.12.1 | 26.12.1 |
| Node.js 24 | below 24.22.1 | 24.22.1 |
| Node.js 22 | below 22.23.4 | 22.23.4 |
| Node.js 25, 23, 20 etc. | all (EOL) | no fix — move to 22/24/26 |
Python Brotli |
≤ 1.2.0 | 1.2.1 |
Python brotlicffi |
≤ 1.2.0.x | 1.2.1 (rev. 0) |
| Bun | ≤ 1.4.3 | 1.4.4 |
| Envoy | 1.39.2, 1.38.5, 1.37.7, 1.36.11 | 1.40.0, 1.39.3, 1.38.6, 1.37.8 |
| Istio | 1.31.0–1.31.1, 1.30.0–1.30.5 | 1.31.2, 1.30.6 |
What to do
- Update the runtimes and packages in the table above. Note: a package inventory can miss an older runtime that is bundled in a container image.
- Inventory where untrusted Brotli data reaches your runtimes — both outbound (responses your app fetches, webhooks, URL previews, crawlers, "fetch this URL" features) and inbound (request bodies your middleware decompresses).
- Find bundled copies — not just runtimes, but also
.NET,DuckDB,ClickHouse,Arrow, archive and font tooling. Some of them decode files, not HTTP, so WAF rules and distro updates miss them. - Temporarily limit untrusted Brotli traffic on affected paths while updates roll out. Reject inbound requests with
Content-Encoding: brbefore a proxy or parser decompresses the body, and turn off automatic Brotli decoding where you can. - Restart processes and rebuild images. An upgrade on the host does not fix a running process or an old container; the old decoder stays in place until restart/rebuild.
None of these steps replaces the update itself — only the runtime update removes the flaw from the decoder.
Why this matters alongside php2shell
This is a direct follow-up to php2shell: same week, same urgency, same lesson. php2shell showed that a runtime bug in a widely used interpreter leads to pre-auth RCE. Node2Shell/HTTP2Shell/Broccoli2Shell shows that a single bug in a compression library, vendored into dozens of products, gives a comparable surface — and that a bug's name can change quickly once its real scope becomes clear. The defensive principle is the same: for an acute runtime bug, patch the layer, but also hunt for where the untrusted input actually reaches the vulnerable code.
Sources
- Node.js — October 2026 security releases
- Imperva: Node2Shell — From Brotli Data to Remote Code Execution
- Broccoli2Shell recall page
- OSV: GHSA-9v8h-qqgm-4m35
- Tanium: HTTP2Shell — find and fix vulnerable Brotli copies
- Phoenix Security: HTTP2Shell Expansion
- The Hacker News: Brotli decoder flaw affects Bun, Python and more