Broccoli2shell: Everything You Need To Know About The Critical Brotli Decoder Vulnerability
An out-of-bounds write in the Brotli decoder can be triggered by specially crafted compressed data, allowing an unauthenticated remote attacker to cause memory corruption, disclose information, crash processes, or potentially achieve remote code execution. The flaw affects multiple downstream products that bundle the Brotli C decoder, including Node.js, Bun, Envoy Proxy, and Istio.
A critical vulnerability, tracked as CVE-2026-111497 and referred to as Broccoli2Shell, has been identified in the Brotli decompression library. The vulnerability affects multiple widely used technologies, including Node.js, Bun, Envoy Proxy, and more.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
Successful exploitation could allow an unauthenticated remote attacker to trigger memory corruption, disclose sensitive information, crash affected processes, or potentially achieve remote code execution.
What the attacker needed
Application decompresses attacker-controlled Brotli data; Brotli support enabled in the component; unpatched vulnerable version
The fix
Affected Brotli libraries and downstream products should be upgraded to their patched versions, and where immediate patching is not possible, Brotli decompression of untrusted data should be disabled or rejected.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Brotli is a compression method used to make web traffic smaller. A bug in the code that unpacks Brotli data means a malicious compressed file can make the program write data past the memory it was given, which can crash it or let an attacker run their own code. Any service that automatically unpacks Brotli data from untrusted sources may be at risk.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.