What to do5 steps
Upgrade Node.js to 22.23.4, 24.22.1 or 26.12.1.
These are the October 2026 security releases.
Rebuild container images pinned to older tags.
Move off end-of-life lines.
The 20.x, 23.x and 25.x lines get no fix.
As a stopgap, refuse untrusted
Content-Encoding: brrequest bodies.WAF rules do not cover responses your app fetches, and dropping
brfromAccept-Encodingis not a full fix either; only an upgrade covers them.Python: upgrade
brotlito 1.2.1 orbrotlicffito 1.2.1.0.Until you can, uninstalling both (and extras such as
httpx[brotli]) makes requests, urllib3 and aiohttp fall back to gzip and deflate. Anything else that bundles Brotli 1.0.3 to 1.2.0: update to 1.0.10, 1.1.1 or 1.2.1.
Are you affected?only if all are true
- The app decodes Brotli data an attacker controls: fetch() reading a malicious response, Express 5 or body-parser 2 with Content-Encoding: br bodies, or direct zlib Brotli calls.
- A bare node:http server does not decode Brotli by itself.
- Python apps that decode Brotli through Brotli or brotlicffi 1.0.3 to 1.2.0: requests, urllib3, aiohttp or httpx[brotli] reading a malicious response, or middleware that accepts Brotli request bodies.
Check your version
- Node.js
node --version - Node.js
node -p "process.versions.brotli" - Container image
docker run --rm --entrypoint node <image> --version - Prompt for your own agent, read-onlyAm I affected by Node2Shell?
Read the prompt
Check whether the systems I am authorized to inspect are affected by Node2Shell (CVE-2026-111497). An out-of-bounds write in the Brotli decoder bundled with Node.js, reachable whenever an app decodes untrusted Brotli data (fetch responses, Express 5 bodies, zlib). It is exploitable under these conditions: - The app decodes Brotli data an attacker controls: fetch() reading a malicious response, Express 5 or body-parser 2 with Content-Encoding: br bodies, or direct zlib Brotli calls. - A bare node:http server does not decode Brotli by itself. - Python apps that decode Brotli through Brotli or brotlicffi 1.0.3 to 1.2.0: requests, urllib3, aiohttp or httpx[brotli] reading a malicious response, or middleware that accepts Brotli request bodies. Fixed releases: - Node.js: 22.23.4 (branch 22), 24.22.1 (branch 24), 26.12.1 (branch 26) 20.x, 23.x and 25.x are end-of-life and get no fix. Commands the catalog lists to find the version or the setting (read each one before you run it): - Node.js: node --version - Node.js: node -p "process.versions.brotli" - Container image: docker run --rm --entrypoint node <image> --version What the catalog says to do on an affected system (report these, do not carry them out): 1. Upgrade Node.js to 22.23.4, 24.22.1 or 26.12.1. 2. Rebuild container images pinned to older tags. 3. Move off end-of-life lines. 4. As a stopgap, refuse untrusted Content-Encoding: br request bodies. 5. Python: upgrade brotli to 1.2.1 or brotlicffi to 1.2.1.0. For each host, container image or application, report affected, not affected, fixed or unknown, with the evidence, and list anything you could not access. Work read-only: do not change configuration, restart services or send exploit input. More: https://nodejs.2shell.wtf/node2shell
Affected versions3 branches
| Node.js branch | Fixed in |
|---|---|
| 22 | 22.23.4 |
| 24 | 24.22.1 |
| 26 | 26.12.1 |
20.x, 23.x and 25.x are end-of-life and get no fix.
Proof of concept1 public PoC
For testing systems you own or are authorized to test. A PoC repository can be fake or carry malware: read it before you run it.
- Open the PoC
Public proof-of-concept repositories on GitHub. The most-starred, dimasma0305/CVE-2026-111497-POC, is a self-checking Brotli RCE harness gated to its own loopback labs.
Timeline4 events
Patched
Upstream Google Brotli fix
Patched
Node.js 22.23.4, 24.22.1 and 26.12.1 released
Public PoC
Public proof-of-concept repositories on GitHub. The most-starred, dimasma0305/CVE-2026-111497-POC, is a self-checking Brotli RCE harness gated to its own loopback labs.
Added to CISA KEV
Added to CISA Known Exploited Vulnerabilities
Also affected
The bug is in Google's Brotli decoder itself, so it reaches beyond Node.js. GitHub's advisory GHSA-9v8h-qqgm-4m35 lists the Python bindings:
brotli(PyPI): affected from 1.0.3 up to 1.2.0, fixed in 1.2.1.brotlicffi(PyPI): affected from 1.0.3 up to 1.2.0.x, fixed in 1.2.1.0.
Other Brotli libraries and binaries from 1.0.3 through 1.2.0 are affected too; the fixed releases per branch are 1.0.10, 1.1.1 and 1.2.1. The same CVE is catalogued as HTTP2Shell for the server stacks and Linux distributions, as Python2Shell for the PyPI packages, and as Broccoli2Shell for the projects that bundle their own copy.
Sources10 links
- CVE-2026-111497
- Node.js October 2026 security releases
- Vercel
- GHSA-9v8h-qqgm-4m35 (PyPI Brotli)
- Imperva: from Brotli data to remote code execution
- Upstream Brotli fix (commit 0ed4268a)
- OpenSourceMalware: Node2Shell affects Python
- Aikido: Python packages vulnerable to the Brotli bug
- The Hacker News
- Cloudflare Zero Wire: node2shell briefing
Sources checked on . This page tells you how to check and what to install. It cannot tell you that you are safe.
9 changes since it was published
- Linked the most-starred public proof of concept.
- Remediation steps got short titles; no fact changed.
- Updated source links that moved to a new address.
- Added the Cloudflare Zero Wire briefing.
- Added the CISA KEV listing.
- The first proof-of-concept repositories date from 21 October, not 22 October.
- Added the Python exposure paths and interim steps and the OpenSourceMalware and Aikido Python analyses. HTTP2Shell is now its own entry, not an alias.
- Added commands to check the installed version.
- Added the HTTP2Shell alias and the PyPI brotli / brotlicffi packages (GHSA-9v8h-qqgm-4m35).