Node2Shell

Also tracked as: HTTP2Shell · Brotli2Shell · Py2Shell

Disclosed Oct 21, 2026

Updated Dec 1, 2026

*2ShellCVSS 9.8CISA KEVPre-Auth RCE

An out-of-bounds heap write (CWE-787) in the Brotli compression decoder bundled into Node.js and numerous HTTP stacks across Python and other ecosystems, allowing unauthenticated remote code execution or memory leaks from malformed Brotli payloads.

Component

Brotli Decoder Library (Bundled Across HTTP Stacks)

Attack Vector & Class

Pre-Auth RCE

Memory Safety

Exploitation Status

Listed in CISA KEV

KEV added Oct 27, 2026

CVSS & Ecosystems

9.8 (v3.1)

Node.js, Python, Brotli

Affected Versions

  • Node.js < 22.23.4, < 24.22.1, < 26.12.1 (and EOL 18, 20, 23, 25)
  • Any HTTP server or client decompressing untrusted Brotli streams with vulnerable libbrotli (Express 5 / body-parser 2, Python urllib3/requests/httpx/aiohttp)

Fixed / Recommended Versions

  • Node.js 22.23.5+, 24.22.3+, or 26.13.x+
  • Patched system libbrotli and updated Python Brotli wheel bindings

Technical Root Cause

Malformed Brotli-compressed input causes the decoder to mistake a format error for missing input and write past an 8-byte buffer. Servers that automatically decompress Content-Encoding: br request bodies (such as Express 5 and body-parser 2) and clients that auto-decompress HTTP responses (Node fetch(), Python urllib3/requests/aiohttp/httpx) are exposed. Because Node.js statically compiles Brotli into its binary, OS-level library updates do not patch Node.js.

Remediation & Hardening

  1. 1Upgrade Node.js to 22.23.5+, 24.22.3+, or 26.13.x+ and rebuild all container images.
  2. 2Audit Python environments, proxies, and native binaries for bundled copies of libbrotli or brotli wheels and update them independently.
  3. 3If immediate patching is blocked, strip or reject untrusted Content-Encoding: br request headers at the reverse proxy or WAF.