Brotli decoder flaw affects Bun, Python and more — not just Node.js
The vulnerability in Google’s Brotli decoder, first called “node2shell”, affects more software. Admins should update promptly.
(Image: broccoli2shell.com / Collage heise medien)
Last week, a vulnerability in Node.js came to light and quickly picked up the nickname “node2shell”. It affects Google’s Brotli compression algorithm decoder. As a result, attackers can inject malicious code over the network. It’s now clear that the bug is in the Brotli library itself and affects many more software products that include it.
The vulnerability entry has since been updated. The issue is a potential buffer overflow in Google’s Brotli decoder in versions 1.0.3 through 1.2.0 across all platforms. Unauthenticated remote attackers can use carefully crafted Brotli data streams to trigger memory-management errors and read sensitive areas of memory, cause a denial-of-service (DoS) attack, or even inject and execute arbitrary malicious code (CVE-2026-111497, CVSS4 9.2, risk “critical”). The vulnerability has also picked up a new nickname: “Broccoli2Shell” – complete with its own website and domain.
Google is fixing the vulnerability in Brotli versions 1.0.10, 1.1.1 and 1.2.1. The patched versions of Node.js are 26.12.1, 24.22.1 and 22.23.4, and have been available since last week. For Python, the Brotli library is available in version 1.2.1, as is “brotlicffi” in version 1.2.1.0; both fix the security hole. Software that uses Brotli through C code bindings is also affected, including Java JNI wrappers, PHP and Ruby extensions, and Go cgo bindings. If you use any of these, look for packages that include the corrected Brotli versions.
Various software with Brotli support is vulnerable
IT security firm Aikido lists other affected software in an analysis, including C++, Bun and Envoy. There’s some reassurance for Apache and Nginx: at least in their default configurations, they don’t decode Brotli. The analysis also offers guidance on how admins can disable Brotli decoding, for example, until they install the update. .NET is affected, too: Microsoft has been distributing updates since Oct. 25 for supported runtimes and SDKs. The Broccoli2Shell website also lists many software versions that remain vulnerable or have already been fixed. Admins should check whether they use any of them and promptly install updates or apply temporary mitigations until they do.
According to Aikido, OpenAI discovered the vulnerability back in February. At the time, however, the source-code correction wasn’t considered a security fix, and a patched version wasn’t released until now.
Videos by heise
Proof-of-concept exploits are now available, some of them publicly. Security firm Imperva has already used one to execute code on an unmodified Node.js build, though only after several attempts. No attacks in the wild are known so far.
(dmk)