HTTP2Shell: a critical Brotli flaw forces emergency patches for Node.js, Python and .NET
A critical flaw in Brotli, Google's compression library, allows code execution in Node.js, Python and .NET. Fixed versions and what to do.
In this article
Apps and services change often. The steps in this guide were reviewed on the date shown; if a menu doesn't match, check the official sources linked at the end. Information reviewed on .
October keeps being a rough month for software security. After the Node.js and PHP flaws, it's now the turn of Brotli, Google's open-source compression library used by a huge number of websites and apps. The bug, dubbed HTTP2Shell (also "Broccoli2Shell" or "Node2Shell"), is tracked as CVE-2026-111497 and rated critical.
What Brotli is and why it matters
Brotli compresses the data travelling between servers and browsers so websites load faster. It's built into Node.js, Python libraries and .NET, among others. That's why a flaw in Brotli affects many programs at once.
What happened
According to BleepingComputer:
- It's a buffer overflow: a crafted data stream makes the decoder write outside its intended memory.
- It can crash processes, leak memory and even enable remote code execution; security firm Imperva confirms code execution is achievable.
- It affects Brotli 1.0.3 to 1.0.9, 1.1.0 and 1.2.0.
- Public proofs of concept exist.
- Update (28 October): the US cybersecurity agency (CISA) confirmed on 27 October that it is now being exploited and added it to its Known Exploited Vulnerabilities catalog. If you're affected, patch as soon as possible.
Fixed versions
- Google Brotli: 1.0.10, 1.1.1 and 1.2.1.
- Node.js: 22.23.4, 24.22.1 and 26.12.1.
- Python: Brotli 1.2.1 and brotlicffi 1.2.1.0 (affects urllib3, requests, httpx or aiohttp when they use a vulnerable decoder).
- .NET: 8.0.33, 9.0.22, 10.0.14 and .NET 11 RC3. Only apps that enable Brotli decompression are affected; it isn't on by default.
What you should do
- If you just use your computer normally: keep your system, browser and apps updated. See why to keep your system up to date.
- If you develop software or run a server:
- Update Node.js, Python libraries and .NET to the fixed versions.
- Restart processes and rebuild container images.
- Note: updating the system Brotli library doesn't fix Node.js or apps that bundle their own copy.
- If you can't update yet, disable Brotli in Python apps and block Brotli-compressed requests at the proxy or firewall.
Sources and documentation
- Critical 'HTTP2Shell' Brotli vulnerability triggers emergency patches — BleepingComputer
- Microsoft releases emergency .NET patches for critical Brotli flaw — BleepingComputer
- CISA warns of hackers now exploiting critical Node2Shell flaw — BleepingComputer
- cybersecurity
- node.js
- python
- .net
- news