HTTP2Shell (CVE-2026-111497): Brotli Bug Gives RCE
HTTP2Shell (CVE-2026-111497) is a critical Brotli decoder flaw enabling RCE in Node.js, Python, .NET, Bun, Envoy and Istio. CVSS 9.2, listed in CISA KEV.
TL;DR — HTTP2Shell (CVE-2026-111497) is a critical memory bug in Google's Brotli decoder. A crafted compressed stream can lead to remote code execution in Node.js, Python, .NET, Bun, Envoy and anything else that bundles Brotli 1.0.3 to 1.2.0. CISA lists it as exploited. Upgrade Brotli, rebuild and restart.
What is HTTP2Shell (CVE-2026-111497)?#
HTTP2Shell is an out-of-bounds write in the Brotli decoder (c/dec/decode.c) in Google Brotli versions 1.0.3 through 1.2.0. NVD says a remote, unauthenticated attacker with a crafted Brotli stream can corrupt decoder memory, read memory, crash the process or potentially execute code. The fixed upstream releases are 1.0.10, 1.1.1 and 1.2.1.
The Google CNA scores it CVSS 4.0 9.2 (Critical); NVD scores it CVSS 3.1 9.8. The weaknesses are CWE-252 (Unchecked Return Value) and CWE-787 (Out-of-Bounds Write).
What broke in the Brotli decoder?#
The bug sits in DecodeBlockTypeAndLength(), which returned plain true or false, so "malformed stream" and "need more input" looked the same.
The Node.js advisory explains the result: an invalid block switch was treated as a need for more input, so the decoder kept appending bytes to an eight-byte internal buffer and wrote past its end.
The fix, Brotli commit 0ed4268 ("Detect and report invalid stream earlier"), makes the function return a real error code. A bad block switch now stops decoding with BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH (-17).
Why does one library bug reach every stack?#
Brotli is a C library that runtimes, proxies and tools copy into their builds. According to Aikido, the fix was first committed to the Brotli source in February 2026, but it only shipped as a security release on 21 October 2026. Projects that had bundled an older copy had no signal to update in between.
Each project needs its own release, and any binary or image that statically links Brotli 1.0.3 to 1.2.0 stays exposed until it is rebuilt.
Affected software and fixed versions#
| Software | Fixed in | Source |
|---|---|---|
| Google Brotli (libbrotli) | 1.0.10, 1.1.1, 1.2.1 | Brotli 1.2.1 release |
| Node.js 22.x, 24.x, 26.x | 22.23.4, 24.22.1, 26.12.1 | Node.js advisory |
Python Brotli / brotlicffi | 1.2.1 / 1.2.1.0 | GHSA-9v8h-qqgm-4m35 |
| .NET 8, 9, 10 | 8.0.33, 9.0.22, 10.0.14 | NVD |
| Bun | 1.4.4 | NVD |
| Envoy | 1.37.8, 1.38.6, 1.39.3 | NVD |
| Istio | 1.29.9, 1.30.6, 1.31.2 | NVD |
Go port (andybalholm/brotli) | 1.2.7 | NVD |
NVD also lists DuckDB, ClickHouse, Apache Arrow and many Siemens products. Broccoli2Shell notes the Go port had the same logic error but would only have crashed. This table is not complete.
How is HTTP2Shell attacked?#
Both sides of an HTTP exchange are exposed:
- Inbound requests. A request with
Content-Encoding: brand a crafted body is decoded before login checks or application code run. A vulnerable Envoy or Istio proxy is exposed even if the application behind it is patched. - Outbound responses. A server the attacker controls returns a crafted Brotli response. Webhooks, link previews, crawlers and URL-import features are in scope. Node.js
fetch()decodes Brotli responses automatically, Aikido notes. - Files. Any code that decompresses untrusted Brotli uploads, archives or data feeds.
Python is easy to miss. When Brotli is installed, urllib3, requests and aiohttp decode Brotli responses, httpx does so through the httpx[brotli] extra, and Scrapy may install it. Broccoli2Shell also reports that pip-audit, Dependabot and Safety did not reliably flag the affected PyPI versions, so check by hand.
Is HTTP2Shell being exploited?#
Yes. A public proof of concept appeared on 22 October. Imperva's red team ran code on the official, unmodified Node.js 24.22.0 image after several attempts. ELLIO reported exploit traffic on 26 October, according to Broccoli2Shell.
CISA added CVE-2026-111497 to its Known Exploited Vulnerabilities catalogue on 27 October 2026, with a due date of 10 November 2026 for US federal agencies.
What should you do now?#
- Find every copy of Brotli in SBOMs, images, host packages and lockfiles. Static copies do not show in the package manager. For Python, run
pip show Brotli brotlicffi. - Upgrade to the fixed versions in the table, regenerate lockfiles and rebuild images.
- Restart running processes. A running process keeps the old decoder in memory until it restarts.
- Check what is running, not what the Dockerfile pins. Check Envoy and Istio separately from the application.
- Use stopgaps only while you patch. Reject
Content-Encoding: brat the edge, and in Python uninstallBrotliandbrotlicffiso clients fall back to gzip. RemovingbrfromAccept-Encodinghelps less, because a hostile server can still send Brotli. - Hunt for compromise. Look for web or proxy processes that crashed on
brrequests, spawned shells or used secrets they do not normally touch.
Our penetration testing service finds exposed decoders and attack paths, advises your team on the fix and retests. You can also start with a free Exposure Check. For incident handling, see our incident response plan guide.
Frequently asked questions#
Is HTTP2Shell the same as Node2Shell?#
Yes. Node2Shell, HTTP2Shell and Broccoli2Shell all refer to CVE-2026-111497. The name changed once researchers saw that the flaw is in Brotli itself and reaches far beyond Node.js.
We do not use Brotli directly. Are we affected?#
Possibly. Node.js, .NET and Bun bundle Brotli, and Python HTTP clients decode it whenever the package is installed. Check your dependencies and images.
Does a WAF rule protect us?#
Only partly. Blocking Content-Encoding: br covers inbound requests, not responses your services fetch or files you decompress.
We run Envoy sidecars. Is patching the application enough?#
No. The proxy decodes the request before your application sees it, so a vulnerable Envoy or Istio can be exploited even if the application is patched. Upgrade the proxy separately.
What is the CISA deadline?#
CISA added it to the KEV catalogue on 27 October 2026, with a due date of 10 November 2026 for US federal agencies. For everyone else, it confirms active exploitation.
Sources#
- NVD, CVE-2026-111497
- CISA, Known Exploited Vulnerabilities catalogue: CVE-2026-111497
- Node.js, October 2026 security releases
- GitHub Advisory Database, GHSA-9v8h-qqgm-4m35
- Google Brotli, v1.2.1 release
- Google Brotli, commit 0ed4268
- Aikido, Node2Shell: Node.js Brotli RCE
- Broccoli2Shell, CVE-2026-111497 overview
Penetration Testing
We try to break in before attackers do.

