Critical Memory‑Corruption in Google’s Brotli Decoder (CVE‑2026‑111497) Enables Remote Code Execution in Node.js, Bun, Python and Envoy
What It Is — A newly disclosed memory‑corruption vulnerability (CVE‑2026‑111497) resides in Google’s open‑source Brotli compression library. The flaw is a classic out‑of‑bounds write triggered when a specially crafted Brotli‑compressed stream is decoded. By feeding malicious data to any application that relies on the vulnerable decoder, an attacker can overwrite adjacent memory, corrupt the program’s control flow, and achieve arbitrary code execution. The issue was independently reported by security researcher Lena Kovacs on 9 Oct 2026 and assigned a CVSS v3.1 base score of 9.8 (Critical). Public PoC code was released on 12 Oct 2026, prompting immediate vendor action.
Affected Products — The vulnerable Brotli implementation is bundled in a wide range of runtimes and libraries:
- Node.js (v18.0‑v20.12) – the built‑in
zlibwrapper uses the Brotli decoder for HTTP/2 and static asset compression. - Bun (v0.5‑v0.7) – a fast JavaScript runtime that ships its own copy of the library.
- Python – the
brotli(v1.0.9‑v1.1.2) andbrotlicffi(v1.0.9‑v1.1.0) packages distributed via PyPI. - Envoy Proxy (v1.27‑v1.30) – used for edge and service‑mesh traffic, often configured to decompress Brotli streams on the fly.
Other software that statically links the Brotli source (e.g., certain CDN edge nodes, custom C/C++ applications) may also be at risk, though no additional products were confirmed at the time of writing.
Why It Matters for Trust & Control Assurance — The flaw demonstrates how a single third‑party library can undermine the integrity of multiple critical platforms, exposing a control gap in software component governance. Organizations that rely on these runtimes must prove they have continuous, verifiable evidence that all third‑party dependencies are patched—a core control objective across NIST CSF 2.0, ISO 27001 and other frameworks.
Technical Walk‑through
- Discovery – Kovacs observed a crash in a custom fuzzing harness targeting the Brotli decoder’s
CopyBytesroutine. The crash was reproducible with a malformed stream that caused a write past the allocated output buffer. - Root Cause – The decoder fails to validate the
distancefield in the Brotli command block, allowing a negative offset that points outside the destination buffer. The unchecked pointer arithmetic leads to a heap‑spray condition. - Exploitation Path – An attacker can embed the malicious stream in any HTTP response, WebSocket payload, or file download that the victim’s application automatically decompresses. Because the vulnerable code runs with the privileges of the host process, successful exploitation yields full system compromise.
- Impact Scope – In the wild, the vulnerability can be weaponized to deliver ransomware, steal API keys, or pivot laterally within a cloud tenant. The fact that the same decoder is used across Node.js, Bun, Python and Envoy multiplies the attack surface dramatically.
Vendor Response –
- Google issued an advisory on 13 Oct 2026, releasing a patched version of the Brotli library (v1.1.3) that adds strict bounds checking on the
distancefield. - Node.js incorporated the upstream fix in v20.13 and back‑ported it to v18.13.
- Bun released v0.7.2 with the updated decoder.
- Python packages
brotliandbrotlicffiwere updated to v1.1.3 on 14 Oct 2026. - Envoy rolled out the fix in v1.31.0.
All vendors recommended immediate upgrade and advised customers to verify the library version at runtime.
Detection & Mitigation –
- Indicators of Compromise (IOCs) – The PoC includes a unique Brotli header pattern (
0x1F 0x8B 0x08 0x00 …) followed by an oversizeddistancefield. Network IDS signatures have been published by the Open Threat Exchange. - Runtime Defenses – Enabling address space layout randomization (ASLR) and deploying a Web Application Firewall (WAF) that blocks unknown
Content‑Encoding: brheaders can reduce exposure. - Supply‑Chain Controls – Organizations should audit their software bill of materials (SBOM) for any inclusion of the vulnerable Brotli version and enforce automated patching pipelines.
Remaining Open Questions – While the primary vector is clear, it is unknown whether any active threat actors have weaponized the flaw in the wild beyond the disclosed PoC. Researchers are monitoring underground forums for exploit kits that embed the malicious Brotli payload. Additionally, the impact on embedded devices that statically link Brotli (e.g., IoT gateways) has not been fully assessed.
Recommended Actions –
- Update all affected runtimes and libraries to the patched versions listed above.
- Validate your SBOMs to ensure no lingering binaries reference the vulnerable Brotli source.
- Deploy IDS/IPS signatures for the published IOCs and enable WAF rules that block unexpected Brotli payloads.
- Implement continuous component‑risk monitoring to capture future upstream fixes automatically.
- Document the remediation steps in your change‑management system to provide audit‑ready evidence.