Node2Shell: Reproducing CVE-2026-111497 in the Node.js Brotli decoder
CVE-2026-111497 is a critical out-of-bounds write in the Google Brotli decoder affecting Node.js, Python, Bun, .NET, Java brotli4j, Envoy, and Istio. The flaw stems from DecodeBlockTypeAndLength() returning ambiguous boolean values that callers cannot distinguish between malformed streams and incomplete input, causing unbounded buffer copies that corrupt adjacent decoder state without crashing. The vulnerability is exploitable through automatic Brotli decompression in HTTP clients (fetch() APIs) and Express 5/body-parser request handlers, providing both arbitrary heap memory read and write primitives that enable code execution. Datadog reproduced exploitation on Node.js 24.22.0 with confirmed in-the-wild exploitation; CISA now lists it in known exploited vulnerabilities. Only patching provides complete mitigation; temporary workarounds involve disabling Brotli inflation or rejecting Content-Encoding: br headers.