Node2Shell
A flaw in Google’s Brotli decoder can let an attacker corrupt memory and potentially execute code. No login is required when attacker controlled data can reach the decoder. Affected releases are Brotli 1.0.3 to 1.0.9, 1.1.0 and 1.2.0; fixed releases are 1.0.10, 1.1.1 and 1.2.1. It ships inside Node.js, Bun, Envoy and Istio, FrankenPHP, Python and .NET packages and Java libraries, often as its own embedded copy, so updating the operating system alone may not fix it.
Are you exposed?
- Affected: any service that decodes Brotli data an attacker controls with an affected Brotli release: 1.0.3 to 1.0.9, 1.1.0 or 1.2.0. In Node.js that includes Express 5 and body-parser 2.x request bodies sent with
Content-Encoding: br, and responses decoded by the built infetch(). - Fixed upstream: Brotli 1.0.10, 1.1.1 and 1.2.1, and Node.js 22.23.4, 24.22.1 and 26.12.1, all released 21 Oct. Node.js 20 and older, and the 23 and 25 lines, get no official fix.
- Check embedded copies, not just the OS package. Node.js, Bun, Envoy, compiled binaries and application packages often carry their own Brotli, so updating the system library may not update them.
- Envoy and Istio are exposed only when a Brotli decompressor filter is enabled.
- FrankenPHP standalone static binaries 1.8.0 through 1.13.1 embed the vulnerable decoder. Loading the extension alone is not exploitable; attacker controlled data has to reach a Brotli decoder. Caddy’s Brotli response encoding uses the encoder and is not affected.
- Patch, rebuild, redeploy and restart. Running processes keep the vulnerable decoder in memory until they restart.
Remediation status.
Official fixes come from each vendor. Brotli is often embedded or vendored, so this table lists the major confirmed fixes, not every product that carries Brotli. Emphere helps patch and rebuild your images across these runtimes. For unsupported Node.js lines, we confirm what we can build and validate for your exact runtime and image before we call it shipped.
Verified on our research ground: across six runs each, the vulnerable decoder continued past the invalid state while the fixed decoder rejected the same input with decoder error -17, and Node.js 24.22.1 rejected it where 24.22.0 did not.
Indicators of attack (IOAs).
- Brotli decoding followed by an unexplained crash, hang, timeout or worker restart.
- Repeated POST requests with
Content-Encoding: br, followed by application instability. - A Node.js or web service process unexpectedly launching
sh,bashordash. - Unexpected outbound connections or new files under the application’s identity.
- Core dumps appearing right after Brotli decoding.
- Repeated reconnaissance followed by large or malformed Brotli request bodies.
Content-Encoding: br on its own is an exposure signal, not proof of attack. The strong signal is Brotli decoder activity followed by process or system consequences.
Campaign and reconnaissance indicators.
Campaign specific indicators observed in October 2026 by ELLIO. Use them for retrospective searches. Attackers can change them, so they are not complete detection.
94.154.43.7Source of observed exploitation traffic7fcbdaaecd4419e2930927844f3b772668204737a4e7602a2290c991c93c5c4bOne observed Brotli exploit bodyMozilla/5.0 (compatible; node2shell-check/1.0)Exposure checker seen before exploitation- Isolate the host.
- Preserve logs and process evidence.
- Rotate any credentials the application could read.
- Redeploy from a patched image rather than cleaning in place.
Patching, rebuilding, redeploying and restarting is the only complete fix. These steps reduce exposure until you get there.
- Inventory embedded and statically linked Brotli copies. Updating the operating system library may not update Node.js, Bun, Envoy, compiled binaries or Python wheels.
- Refuse inbound Brotli request bodies at the proxy if your applications don’t need them.
- Turn off automatic Brotli decompression for outbound requests an attacker can influence.
- Turn off Envoy and Istio Brotli decompressor filters until you upgrade.
- Restrict access to core dumps and how long you keep them, since repeated crashes can write process secrets to disk.
- Move off unsupported Node.js releases. They will not receive official fixes.
- Tested on our research ground: Emphere’s Brotli request validation control checked Brotli request bodies before they reached the application. Malformed Brotli was refused, while valid Brotli and ordinary traffic continued normally, with no application restarts. It covers inbound HTTP requests routed through it; it does not replace patching or cover Brotli read from files, queues, RPC or outbound responses. Start it in monitor mode, then switch to enforcement, and ask us about it in the request below.
