OpenAI red-team testing uncovered an unauthenticated remote code execution vulnerability in the Brotli compression library: an attacker could take over a server or client simply by sending or replying with malicious compressed data. The underlying code was fixed in February, but the new release was delayed, meaning software such as Node.js, Bun, and Envoy that bundles Brotli may still contain the vulnerable code. Fixing one line of code and fixing a machine are separated by three gates.

Imagine that someone upstairs replaced a leaking valve but never installed the new part in the entire plumbing system: repairing the fitting does not mean that downstairs residents are already using the fixed version. The Brotli fix likewise has to move through a new library release, the software that bundles it, and finally the end user. If any layer stalls, malicious compressed data may still find a way in through the dependency chain. That is where the analogy ends, however: what is spreading here is not water but malicious compressed data capable of triggering code execution, and defenders need to verify the library version, downstream software versions, and final upgrade status.
Incident

One Package of Compressed Data Can Hit Servers and Clients

Whenever software accepts compressed input, an attacker may be able to run their own code on the affected system by delivering a package of malicious compressed data. OpenAI discovered this Brotli vulnerability during red-team testing. The impact extends beyond Brotli itself to any software that includes compressed input in its processing pipeline.

The attack surface exists on both ends of a data exchange. If an unpatched server accepts compressed input, a malicious client can use that opportunity to take over the server; if an unpatched client accepts a compressed response, a malicious server can take over the client in the opposite direction. OpenAI used curl --compressed to illustrate the latter case: when a client requests compressed content, an attacker does not need to wait for the user to open a webpage or run an additional program because the malicious response itself may provide the entry point.

Brotli is a compression library—a software component that compresses data for transmission and restores it during decompression—and it is bundled into many applications. OpenAI specifically named Node.js, Bun, and Envoy. Anyone who can submit compressed content may be able to deliver malicious data to the other side.

1 vulnerabilityUnauthenticated RCE vulnerability in Brotli
0 accountsCan be triggered without creating a user account
2 directionsMalicious client to server, or malicious server to client

The complication is that the difficulty of applying the fix runs deeper than the vulnerability itself. OpenAI said the root cause was fixed in Brotli's source code in February, when no one knew it could become a security vulnerability, and no new release was published afterward.

Because Brotli is compiled into other software, every application that bundles it must be updated before its users can receive the fix. Following disclosure, Brotli cut a new release and registered a CVE, while downstream projects such as Node.js have released or are rolling out security updates.

No independent third-party retest of the vulnerability has been reported; existing sources do not provide verified data on actual exploitation after triggering the issue with compressed data.

Why It Matters

The Root Cause Is Fixed, but Your Server Can Still Be Vulnerable

Does fixing upstream code mean your own runtime environment is safe? Not necessarily. Brotli—an open-source algorithm library used to compress network data—is already bundled into software such as Node.js, Bun, and Envoy. Here, “bundled” means that these applications include the library directly rather than downloading it from the internet each time they run.

For a source-code fix to reach your machine, it must pass through three gates: the library must first release a new version containing the fix, downstream software must then incorporate it, and users must finally upgrade the relevant software. If any step stalls, end users may still receive vulnerable legacy code.

1
Vulnerability that can trigger unauthenticated remote code execution
Source: OpenAI (X)
February
When the root-cause code in Brotli was fixed
Source: OpenAI (X)
3
Named downstream software projects
Source: OpenAI (X)

During the gap between the fix and disclosure, unpatched servers or clients could still process malicious compressed data. After discovering the issue during red-team testing, OpenAI disclosed it to Brotli and downstream projects such as Node.js. Brotli then released a new version and registered a CVE, while Node.js has also released or is rolling out security updates.

Those who operate web services, proxies, network tools, or development environments need to check more than whether Brotli is installed. They also need to verify the installed version, the versions of software bundling Brotli, and the updates those applications have actually received. Compression usually means less traffic and faster responses, but it will not decide for you when the fix truly reaches production.

Treating “upstream has fixed it” as “our system is secure” is the most important misconception to avoid right now—assuming the software does accept compressed input. Deployments that do not process compressed data have a much smaller attack surface.