Skip to main content

Node2Shell and the Brotli Decoder Bug: Patching a Library You Didn't Know You Had

Updated 3 min readMarkdown
Node2Shell and the Brotli Decoder Bug: Patching a Library You Didn't Know You Had

Ask a development team where Brotli lives in their stack and most will shrug. Google's small compression library is quietly embedded in Node.js, Python packages, .NET, proxies such as Envoy and many HTTP libraries. This week it became the center of a coordinated patching effort.

What happened

CVE-2026-111497, nicknamed Broccoli2Shell, Node2Shell and HTTP2Shell, is an out-of-bounds write in the Brotli decoder. When a crafted compressed stream reaches the decoder, an impossible block switch is mistaken for "not enough input," the decoder retries, and each retry can append an attacker-supplied byte to an eight-byte temporary buffer until the write crosses its boundary. Google, as the CNA, scored it 9.2 under CVSS 4.0; Microsoft rates it 8.1 under CVSS 3.1 for .NET and marks it "Exploitation More Likely." Node.js credits members of OpenAI Codex Security with the discovery.

The root cause was fixed in the Brotli source back in February 2026, but nobody recognized the security impact and no release followed. Fixes then arrived in quick succession:

  • Brotli 1.0.10, 1.1.1 and 1.2.1 and Node.js 22.23.4, 24.22.1 and 26.12.1 on October 21
  • Python Brotli 1.2.1 and brotlicffi 1.2.1.0 on October 23
  • An out-of-band Microsoft update on October 25: .NET 8.0.33, 9.0.22, 10.0.14 and .NET 11 RC3, plus Visual Studio and PowerShell 7.4 to 7.6
  • Envoy, Istio, Bun and Brotli4j have fixed releases too; DuckDB, Apache Arrow and ClickHouse had none yet at the time of writing

How worried should you be?

No in-the-wild exploitation has been reported. Imperva demonstrated code execution against the official Node.js 24.22.0 image on Linux arm64, though not on every attempt, and a public proof of concept works only on a deliberately weakened build. In .NET and Envoy, Brotli decompression is opt-in, so only applications that enabled it are exposed.

Practical steps for this week

  • Inventory services that accept compressed data from outside, including proxies and HTTP clients.
  • Patch, then restart: running processes keep using the vulnerable code.
  • Rebuild container images on a patched base image.
  • Until you patch, reject requests with Content-Encoding: br at the edge, including direct-to-origin routes.
  • Disable automatic Brotli decompression in HTTP clients; removing br from Accept-Encoding alone does not stop a malicious server.
  • Check applications that bundle their own copy of Brotli; updating the system library does not fix them.

The broader lesson: an asset inventory that stops at operating systems and installed packages misses the transitive dependencies where bugs like this hide.

Full write-up with every fixed version and mitigation: https://symantecland.com/brotli-decoder-flaw-cve-2026-111497-dotnet-nodejs-patches/?utm_source=hashnode&utm_medium=article&utm_campaign=sx_syndication

— Kazem Mortazavi, independent network-security consultant

About the author

  • Founder of Security Land and CEO of PRS, with 25+ years in ICT. I write practical, no-hype analysis of the latest vulnerabilities, zero-days and incidents — and what security and infrastructure teams should actually do next. Focus areas: network security, DLP, encryption/HSM, identity and threat intelligence. More at symantecland.com

No comments yet. Be the first to comment.

More from this blog