OpenAI's red-team agents found a code-execution bug in the Brotli decoder
OpenAI says agents it used to red-team its training environment found an out-of-bounds write in Google's Brotli decoder, CVE-2026-111497, through which crafted compressed data can corrupt memory and allow remote code execution in Node.js, Bun and Envoy or Istio proxies that decompress Brotli, and in clients that fetch from a hostile server. The root cause was fixed in Brotli's source in February but never released, so Google shipped Brotli 1.2.1 on 21 October, Node.js's 21 October security releases (22.23.4, 24.22.1 and 26.12.1) credit OpenAI Codex Security, and fixed Bun, Envoy and Istio releases are listed on OpenAI's Patch the Planet page. Teams that cannot patch yet are told to reject Brotli-encoded input before any decoder runs, because turning off Brotli response compression does not stop request or client-side decoding.
updates 2026-10-23 · prior evidence ↗
During this red-teaming exercise, we also found a vulnerability that allows for unauthenticated remote code execution in Brotli, a widely-deployed compression library included in many pieces of software such as Node.js, Bun, and Envoy. The flaw could let an attacker run their…
During this red-teaming exercise, we also found a vulnerability that allows for unauthenticated remote code execution in Brotli, a widely-deployed compression library included in many pieces of software such as Node.js, Bun, and Envoy. The flaw could let an attacker run their own code on affected systems by sending or replying with malicious compressed data, without any need to create a user account. That is, an unpatched server that accepts compressed input could be taken over by a malicious client, and an unpatched client that accepts compressed input (such as “curl --compressed”) could be taken over by a malicious server. This root cause issue was actually fixed in the Brotli source code in February, but it wasn’t known at the time that it gave rise to a security vulnerability and there was no more recent release of Brotli. Since Brotli is built into other software, any software which includes this library needs to take the update too, followed by the users of that software. We disclosed the vulnerability to Brotli and other downstream projects such as Node.js, which released or are currently releasing security updates, and Brotli cut new release versions and published a CVE. More details on the patch and mitigations below: https://t.co/Y1Y72aHxrW
discussion1 selected reply
@OpenAI Python side: with brotli or brotlicffi installed, requests/urllib3 add br to Accept-Encoding and decode it, so a plain scraper hitting a hostile URL is exposed. The wheel ships its own decoder; an OS libbrotli update won't cover it. https://t.co/sfjHPMMrsD