Brotli flaw Node2Shell lets crafted compressed data run code in Node.js and other software; CISA lists it as exploited
An out-of-bounds write in Google's Brotli decoder, CVE-2026-111497 (CVSS 9.2 from Google), lets malformed compressed data corrupt memory and potentially run code in software that decompresses attacker-controlled input, including Node.js, .NET, Bun, Envoy, Istio and Python HTTP clients. Imperva demonstrated code execution on stock Node.js, and CISA added the flaw to its exploited-vulnerabilities list on October 27.
Node.js disclosed the flaw on October 21 in security releases for its 26.x, 24.x and 22.x lines. In its advisory, the decoder treated an invalid block switch as a temporary need for more input instead of a permanent format error, so the streaming decoder kept appending input bytes to an eight-byte internal buffer. An application that decompresses attacker-supplied Brotli data with node:zlib can have its memory corrupted, leading to a crash, a leak of process memory or remote code execution. Node.js credits OpenAI Codex Security with the report.
The bug is in upstream Google Brotli, so its reach goes well beyond Node.js. Tenable lists Brotli 1.0.3 to 1.0.9, 1.1.0 and 1.2.0 as affected, fixed in 1.0.10, 1.1.1 and 1.2.1, and software including Node.js, .NET, Bun, Envoy Proxy, Istio, Python HTTP clients and PHP for Windows. Google committed the upstream fix on February 27 and released fixed versions on October 21; Brotli 1.2.1 reached PyPI on October 22 and Microsoft shipped .NET updates on October 25. The PHP project said on October 26 that its Windows builds now include Brotli 1.2.1, because the decoder can be reached through the cURL extension when automatic HTTP response decompression is turned on, which is off by default.
Imperva's Red Team showed code execution on the official Node.js 24.22.0 Linux arm64 image, both through a Brotli response consumed by the built-in fetch() and through request bodies decoded by Express 5 and body-parser 2. The proof of concept did not succeed on every attempt, and the fixed 24.22.1 rejected the same inputs. Rapid7 said on October 26 that it knew of no exploitation; CISA added the flaw to its Known Exploited Vulnerabilities catalog on October 27 with a federal due date of November 10.
Node.js has no workaround, and fixed releases are 26.12.1, 24.22.1 and 22.23.4. Applications that bundle their own copy of Brotli need their own fix. If an immediate upgrade is not possible, Rapid7 suggests restricting or disabling code paths that decompress untrusted Brotli data.
Sources
- Node.js: Wednesday, October 21, 2026 Security Releases nodejs.org
- Tenable: Brotli2Shell, frequently asked questions for Google Brotli decoder (CVE-2026-111497) tenable.com
- Imperva: Node2Shell, from Brotli data to remote code execution imperva.com
- Rapid7: CVE-2026-111497, critical out-of-bounds write in the Node.js Brotli decoder rapid7.com
- PHP.net news archive 2026: Updated PHP Windows builds for Brotli security fix php.net
- CISA Known Exploited Vulnerabilities catalog data (cisagov/kev-data) github.com