Skip to content
AI Learning Ground Start learning

News ·

Node2Shell evolves to HTTP2Shell, blast radius affects many HTTP libs and apps

Node2Shell, now called HTTP2Shell (CVE-2026-111497), is a critical out-of-bounds write in Google's Brotli decoder (versions 1.0.3–1.2.0) enabling unauthenticated remote code execution in both HTTP clients and servers.

Node2Shell evolves to HTTP2Shell, blast radius affects many HTTP libs and apps
Image: Hacker News

CVE-2026-111497 is a critical (CVSS 9.2) out-of-bounds write in the Google Brotli decoder affecting versions 1.0.3 through 1.2.0 on all platforms. This is the same flaw behind the recently announced Node2Shell, now referred to as HTTP2Shell because the blast radius extends to many HTTP libraries and applications that use Brotli or have brotlicffi installed. A remote, unauthenticated attacker can send a crafted Brotli-compressed stream to corrupt memory, leak data, crash the process, or potentially execute arbitrary code. OpenAI's Codex Security team reported it as unauthenticated remote code execution that works in both directions: a malicious client can take over an unpatched server, and a malicious server can take over an unpatched client.

The bug causes the decoder to keep accepting bytes it should reject, overflowing a small working buffer and corrupting memory. The root cause was fixed in Brotli's source on February 27 but wasn't recognized as a security issue, and no Brotli release included the fix until October 21. Because many projects bundle Brotli, each must ship its own update. Apache's standard mod_brotli is not affected since it does not decode Brotli.

Fixes include Node.js 22.23.4, 24.22.1, or 26.12.1; native Brotli 1.2.1+; Python Brotli 1.2.1+ and brotlicffi 1.2.1.0+; .NET 8.0.33, 9.0.22, 10.0.14, or 11 RC3 (self-contained apps need a rebuild); brotli4j 1.24.0; Bun 1.4.4+; Envoy, Istio, curl, and OS vendor updates. Workarounds include rejecting requests with 'br' in Content-Encoding and removing 'br' from Accept-Encoding, though changing Accept-Encoding alone is insufficient since a malicious server can send Brotli regardless, and urllib3 picks its decoder from the response header. Rebuild and redeploy affected applications, and verify running workloads use patched components.

For builders, this matters because any HTTP stack accepting Brotli-compressed input—servers and clients alike—can be exploited without authentication. Audit your dependency tree for Brotli, brotlicffi, and bundled runtimes like Node.js, patch promptly, and block 'br' encoding at proxies or middleware until upgrades are verified.

References

Read the full story at Hacker News ↗Like, save or discuss on Buzz

#community #signals