Quick Answer
CVE-2026-111497 is a memory-corruption bug in Google’s Brotli compression decoder. Because the same decoder code is reused inside Node.js, Bun, Python packages, and proxy software like Envoy, one flaw left many programs exposed to potential remote code execution. It was disclosed on October 21, 2026, fixes are already out for the major products, and no real-world attacks have been reported so far. If you run any affected software, update it — that is the whole fix.
What Is Brotli, and Why Is It Everywhere?
Brotli is a compression format created by Google that shrinks web pages and data before they travel across the internet, so sites load faster and use less bandwidth. Your browser, your phone, and the servers behind your favorite apps all speak Brotli constantly — usually without you ever noticing.
The problem lives in the C code that unpacks Brotli data. Any program that borrowed that code inherited the bug along with it. That is why a single flaw suddenly matters to so many different products: the decoder is a shared building block, and every program ships its own copy of it.
What Went Wrong
When a program unpacks compressed data, it reserves a buffer — a fixed chunk of memory — to hold the result. This flaw lets specially crafted compressed data write past the end of that buffer, corrupting nearby memory. In the worst case, that corruption can crash the program, leak memory contents, or let an attacker run their own code inside it.
Security researchers demonstrated code execution on one unpatched Node.js build (their proof of concept, nicknamed Node2Shell, ran on Node.js 24.22.0 on Linux ARM64). The same level of exploitation has not been demonstrated on the other affected programs, and researchers stress that the exploit took several attempts even in the lab. Still, Google rates the flaw 9.2 out of 10 (critical) — because the potential impact is severe even if real attacks are hard.
One twist worth knowing: the code change that fixes this bug actually landed in Brotli’s source code back in February 2026 — but nobody realized at the time that it closed a security hole, so no release shipped it until October 21. The lesson for the whole industry: a quiet code fix can be a security fix in disguise.
Who Is Affected?
A program is only exposed if it decodes Brotli data it did not create — data sent by someone else. Here is the picture:
| Software | Affected versions | Fixed in |
|---|---|---|
| Google Brotli (C library) | 1.0.3 to 1.2.0 | 1.0.10, 1.1.1, 1.2.1 |
| Node.js | 22.x, 24.x, 26.x (before the fix) | 22.23.4, 24.22.1, 26.12.1 |
| Bun | 1.4.3 and earlier | 1.4.4 |
| Envoy | 1.39.2, 1.38.5, 1.37.7, 1.36.11 | 1.40.0, 1.39.3, 1.38.6, 1.37.8, 1.36.12 |
| Istio | 1.31.0–1.31.1, 1.30.0–1.30.5, 1.29.0–1.29.8 | 1.31.2, 1.30.6, 1.29.9 |
Python Brotli package |
1.2.0 and earlier | 1.2.1 |
Python brotlicffi package |
1.2.0.x and earlier | 1.2.1.0 |
For Node.js and Bun, exposure happens when the built-in fetch() reads a response compressed with Brotli, or when request-body parsers (like Express 5 or body-parser 2) unpack a Brotli upload. A plain Node.js HTTP server that never decodes bodies on its own is not exposed this way.
Envoy and Istio are only affected when Brotli decompression is actually switched on — for example through an Envoy filter. If it is off, the flaw cannot be reached.
Python users have a sneaky exposure: if the Brotli or brotlicffi package is installed at all, HTTP clients like requests, urllib3, httpx, and aiohttp decode Brotli responses automatically — so an app can be exposed without ever importing Brotli in its own code. Dependency scanners may also miss these packages at first, because the CVE record names Google’s Brotli repository rather than the PyPI packages — so check installed versions manually.
Does This Affect Regular Users?
If you just browse the web, you are mostly protected by the updates your browser and operating system already receive — browsers bundle their own decoders and vendors patch them quickly. The real risk sits with developers, server operators, and anyone running Node.js, Bun, Python services, or Envoy/Istio proxies in production. If that is you, the next section is your checklist.
How to Fix It
- Update to a fixed version from the table above — this is the only complete fix, especially for Node.js, where no workaround has been published.
- Restart the service and rebuild container images. A running process keeps the old decoder in memory until it restarts.
- If you cannot update yet, stop decoding untrusted Brotli: reject incoming requests carrying
Content-Encoding: brbefore any proxy or parser touches the body, turn off automatic Brotli decoding in HTTP clients, and in Python, uninstall the Brotli and brotlicffi packages so clients fall back to gzip and deflate. - Do not rely on dropping
brfrom the Accept-Encoding header alone — a server can send Brotli regardless of what the client asked for. - Check your dependencies twice. Scan for the Python packages by hand (see above), and remember system packages (Debian, Amazon Linux) are being fixed on different schedules — check your distribution’s security notices.
Frequently Asked Questions
Has this vulnerability been exploited in the wild?
As of the latest assessments, no. CISA recorded exploitation as “none,” and researchers note there is no reliable public proof of concept for running code beyond the lab demonstration. That can change — patching now is what keeps it that way.
I only use Node.js for a small personal project. Should I care?
Yes — updating Node.js takes minutes (for example, via nvm or your package manager), and the fix closes a critical hole. Small projects are often the ones attackers scan first, because they are the least maintained.
Is Brotli itself unsafe now?
No. Brotli is a solid, widely used format. This was one bug in one decoder implementation, and it is fixed in current releases. The story here is about shared code and update discipline, not about abandoning compression.
How do I know if my Python app is affected?
Run pip show Brotli brotlicffi (or check your lockfile). If either package is installed at version 1.2.0 or earlier, update to 1.2.1 (or 1.2.1.0 for brotlicffi) — or remove the package if nothing needs it. Good general hygiene for secrets and dependencies also helps: our guide to setting up two-factor authentication covers one layer of account defense every developer should have.
Key Takeaways
- One shared decoder bug (CVE-2026-111497) exposed Node.js, Bun, Python packages, Envoy, and Istio at once.
- Google rates it critical (9.2); no real-world attacks reported yet, but lab code execution was demonstrated on Node.js.
- Update to the fixed versions, restart services, and rebuild containers — that is the complete fix.
- Python users: check for Brotli/brotlicffi manually, since scanners may miss them.
- The deeper lesson: shared code means shared risk, and quiet upstream fixes deserve fast downstream updates.
Conclusion
The Brotli flaw is a textbook example of modern software risk: one tiny library, reused everywhere, one bug, global exposure — and one fix, already available. If you run affected software, update today; if you do not, this is still a useful reminder of why keeping runtimes and dependencies current is the single highest-value security habit there is. For the original technical disclosure, see The Hacker News coverage of the Brotli decoder flaw.
