Blog / News

HTTP2Shell: a critical Brotli bug hits HTTP in both directions — and dependency scanners are still blind

CVE-2026-111497 is an out-of-bounds write in the Brotli decoder (versions 1.0.3–1.2.0), CVSS 9.2. It started as Node2Shell in Node.js and within three days reached Python, Bun, Envoy, Istio, and curl. OpenAI found the bug back in February — the fix sat in the source tree for 8 months without a release. Advisory databases don't map the CVE to PyPI yet: pip-audit and Dependabot stay silent. Who's affected, who isn't, and which versions to install.

•5 min read
News Security

TL;DR: what was called Node2Shell on Wednesday became HTTP2Shell by Friday: CVE-2026-111497, an out-of-bounds write in the Brotli decoder (versions 1.0.3–1.2.0, CVSS 9.2 — critical), turned out to be not a Node.js problem but a whole-HTTP-stack problem: Python packages, Bun, Envoy, Istio, curl. A remote unauthenticated attacker can feed a crafted compressed stream and — depending on their luck — read process memory, crash it, or execute code. Patches exist for almost everything, but with a catch: dependency scanners don’t see the problem yet.

What happened

Brotli is Google’s compression algorithm — a noticeable share of the internet’s HTTP responses (HTML, CSS, JS) travels Brotli-compressed, and your client or server decompresses them. The bug: the decoder keeps accepting bytes where it should reject the data; the extra bytes overflow a small working buffer and corrupt process memory. From there it’s the classics: reading foreign memory, crashing, potentially executing attacker code.

The week’s timeline:

  • February 2026: OpenAI finds the bug and reports it upstream — as a vulnerability with RCE potential in both directions: a malicious client can attack a server, and a malicious server can attack a client that accepts compressed responses. The root cause was fixed in the Brotli source back then — but it wasn’t recognized as a security issue, so no release shipped the fix.
  • Wednesday, October 21: Node.js publishes CVE-2026-111497 (“Node2Shell”) — Node is affected through its bundled Brotli copy.
  • Thursday, October 22: Python confirmation: the brotli and brotlicffi packages are vulnerable, and requests, httpx, and aiohttp load them automatically when present.
  • Friday, October 23: it becomes clear that every language and service that compresses or decompresses Brotli over HTTP is in the blast radius — and Aikido renames the story HTTP2Shell.

HTTP2Shell timeline: OpenAI’s February find, Node2Shell on Wednesday, Python on Thursday, the whole HTTP stack on Friday

Blast radius

You’re exposed if your environment has Brotli ≤ 1.2.0 or brotlicffi 1.2.0.x — and in Python these are often pulled in by HTTP clients as an optional dependency: the package exists in the environment → the client starts decoding Brotli → you’re in the risk zone.

Patches are out: Node.js (22.23.4 / 24.22.1 / 26.12.1), libbrotli 1.2.1 (patched 1.0.10 and 1.1.1 for older lines), Python brotli 1.2.1 and brotlicffi 1.2.1.0, Bun 1.4.4, Envoy (1.40.0 / 1.39.3 / 1.38.6 / 1.37.8), Istio (1.29.9 / 1.30.6 / 1.31.2), curl/libcurl via its Brotli dependency or vendor package.

Not affected by default: Apache and Nginx — their standard Brotli modules don’t decode by default. If you enabled mod_brotli or a brotli filter yourself, check separately.

Blast radius: Node.js, Bun, Python, Envoy, Istio, curl are affected; Apache and Nginx don’t decode Brotli by default

The main trap: scanners are blind

As of publication (October 23–24), advisory databases don’t map the CVE to the PyPI packages — so pip-audit, Dependabot, and Safety won’t flag vulnerable versions. Manual checking only: look for brotli and brotlicffi in lock files and environments (pip freeze, pip list, poetry/pdm/uv locks), and inspect container images — a Brotli copy may have arrived statically linked.

And remember static linking: if Brotli is compiled into your binary or image, updating the system package isn’t enough — you need to rebuild and redeploy the application, then verify that production runs the patched version.

How to patch: versions for Node.js, libbrotli, Python, Bun, Envoy, Istio — plus a reminder that scanners stay silent for now

Honest caveats

  • CVSS 9.2 is about potential, not ease. An OOB write in a decoder is a hard class for reliable RCE; the “potentially execute code” phrasing in the advisory is honest: memory reads and crashes are much easier than dependable code execution.
  • No public exploit at publication time — but the window between disclosure and fleet-wide patching is historically short.
  • Some blast-radius assessments come from Aikido (a security vendor, an interested party); patch versions are cross-checked against their table as of October 23.

Why this matters to us

The HTTP2Shell week is about a decision chain under pressure: what to patch first, where Brotli even exists in your stack, which images were rebuilt, what was postponed and why. For a team where agents run incident response, that decision trail is the main artifact: a month later you walk it to check coverage. If an agent works without external memory, the trail dies with the session. MaxGraph keeps such decisions with dates and sources — including “why we postponed” — and finds them when the second wave arrives.

FAQ

My site runs on Nginx — am I safe? By default, yes: Nginx and Apache don’t decode Brotli out of the box. But if you enabled a Brotli module manually or sit behind an Envoy/Istio proxy, check those versions.

pip-audit is silent — so I’m clean? No. As of October 23–24, advisory databases don’t map the CVE to the PyPI packages brotli/brotlicffi. Check versions manually: you need brotli >= 1.2.1 or brotlicffi >= 1.2.1.0.

How is this different from Node2Shell? Same bug (CVE-2026-111497). Node2Shell was the name of the first wave (Node.js); HTTP2Shell is Friday’s realization: the whole HTTP stack that decodes Brotli is vulnerable, not just Node.

Do I need to rebuild containers? Yes, if Brotli came into the image statically or through dependencies — update locks, rebuild the image, redeploy, and verify the version inside the running container.

What’s next


MaxGraph — memory for AI agents: local, private, with a living knowledge graph. 7 days free.

MaxGraph

Give your agent memory

7-day trial, no card. Installation is one prompt — your agent does the rest.

Pricing ✓ Copied