Node.js shipped 22.23.4, 24.22.1 and 26.12.1 on 21 October 2026, fixing ten flaws. One of them got a nickname: Node2Shell, after Imperva demonstrated code execution through it the following day.
If you run Node, update. That part is simple, and everything else about this one is not.
It is not Node's bug
CVE-2026-111497 is assigned by Google, against Brotli. Its title is "Out-of-Bounds Write in Google Brotli Decoder", and the affected product list contains exactly one entry: github.com/google/brotli, versions 1.0.3 up to 1.0.10, 1.1.0 up to 1.1.1, and 1.2.0 up to 1.2.1.
Node.js does not appear in that list. Neither does anything else. Node.js bundles the Brotli decoder, so a Node release fixes it for Node users — but the flaw lives in a compression library that a great many other things also bundle, and the CVE record counts none of them.
Google's description is worth reading in full: "A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli versions 1.0.3 through 1.2.0 on all platforms allows a remote unauthenticated attacker to corrupt adjacent decoder state memory, disclose sensitive memory contents, cause a denial of service, or potentially execute arbitrary code using a crafted Brotli-compressed stream."
Three bodies, three scores
Google scores it 9.2 Critical under CVSS v4.0, with AT:P in the vector — attack requirements present, meaning Google itself encoded that exploitation is conditional. Node.js rates it high with no number. Amazon rates it 8.1. NVD has an entry but is still "Awaiting Analysis" and has assigned nothing.
CISA's own enrichment, published 22 October, records Exploitation: none, Automatable: no, Technical Impact: total. It is not in the Known Exploited Vulnerabilities catalogue, and no in-the-wild exploitation has been reported by anyone.
So when you see 9.2 quoted, that is Google's figure for the library. It is not Node's and it is not NVD's.
What the flaw actually is
A Brotli stream declares the block types it will use as decoding proceeds. Imperva's crafted input reached a block transition that the stream's own structure ruled out — an impossible point.
The vulnerable decoder could not tell that apart from running out of input. In DecodeBlockTypeAndLength, both conditions returned the same value, BROTLI_FALSE. A malformed stream and a truncated one were indistinguishable, so the decoder treated "this is impossible" as "send me more data" and carried on from an invalid internal state. Continuing from there wrote past the intended buffer.
The upstream fix gives the impossible case its own error code, -17 BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH, and makes the three block-switch wrappers stop discarding the return value. That second half is why the CVE carries CWE-252, unchecked return value, alongside the out-of-bounds write.
There is a clean way to tell the two apart in testing: an unpatched decoder fails a crafted stream late with BLOCK_LENGTH_1 (-9); a patched one rejects it early with BLOCK_SWITCH (-17).
The fix is eight months old
This is the detail that reframes the whole story.
The upstream commit — "Detect and report invalid stream earlier" — is dated 27 February 2026. Google's own CVE record carries a datePublic of 27 February 2026. The fix went into Brotli's master branch eight months before anyone labelled it a security fix, and Brotli 1.0.10, 1.1.1 and 1.2.1 were only published on 21 October.
The consequence is that several major consumers are already safe, entirely by accident, because they rolled their dependency at some point after February:
- Chromium and Chrome pin a post-fix revision from March. M148 through current stable are fine; M147 and earlier are not. No Chrome release note mentions this CVE.
- Firefox pins an April revision on main, release and beta. ESR 128 pins the 1.1.0 tag and is vulnerable.
- Envoy pins a September revision. Fixed on main, 1.40.x, 1.39.3+, 1.38.6+ and 1.37.8+; vulnerable on 1.39.0–.2, 1.38.0–.5, 1.37.0–.7 and all of 1.36.x.
- Bun fixed it in 1.4.4 by bumping its pin — silently, with no mention in the changelog.
Three of those four got the fix without knowing they were taking one.
Your version string is lying to you, in both directions
Because the fix landed on master in February but the tagged releases came in October, a Brotli version number tells you very little:
- Something pinning a post-February master snapshot is already fixed while still reporting "1.2.0". Envoy and Chromium are in this category.
- Something pinning the v1.2.0 tag reports the same string and is vulnerable. The PHP
kjdevextension and the Rubybrotligem both pin the exact commit the advisory lists as last-affected.
Software composition analysis keyed on version strings gets this wrong both ways.
It gets worse. The GitHub advisory, GHSA-9v8h-qqgm-4m35, is marked unreviewed with an empty affected-packages list — zero packages, zero ecosystems. OSV carries only a Git commit range with no package identifiers. In practice that means npm audit, Dependabot, pip-audit, cargo audit and govulncheck will not flag this CVE for any package you depend on.
How a Node app actually reaches it
Two paths, and Imperva reproduced code execution through both.
Brotli responses you fetch. If your code reads a Brotli-compressed response through Node's built-in fetch(), the decoder runs on data from whatever server you called. This is the path people forget, and it is the one a WAF cannot help with.
Brotli request bodies you accept. Express 5's body parsers — express.json(), express.urlencoded(), express.text(), express.raw() — decode Brotli request bodies alongside gzip and deflate. So do body-parser 2.x.
The important qualifier, in Imperva's own words: "A bare Node.js HTTP server does not decode incoming Brotli bodies simply by receiving them." You need that middleware, or an explicit call. Express 5 and body-parser 2 are routes into the vulnerable decoder, not the source of the flaw.
How solid is the exploit?
Treat this carefully, because the gap between the headline and the evidence is wide.
Imperva ran code on the official Node.js 24.22.0 Linux arm64 image with no debugger and no custom build, and the same input was rejected by 24.22.1. That is a real result on a stock build.
Their own caveats, verbatim: "The proof did not succeed on every attempt. Our results establish code execution for the tested Linux arm64 build and application setups… We did not test every Node.js build or application." Only Linux arm64. Only the 24.x line. 22.x and 26.x untested.
An earlier public proof of concept, reported by several outlets, achieved code execution only against a deliberately weakened build; on a standard build its author reported a crash and a limited memory read rather than code execution.
So: demonstrated once, on one architecture, probabilistically, by a vendor that also sells the WAF rules for it, against a flaw whose CNA encoded conditional attack requirements and which CISA scores as not exploited. Real and worth patching. Not mass exploitation, and no evidence of any exploitation.
One small correction worth not propagating: Imperva's write-up credits Matteo Collina with reporting the flaw. The Node.js advisory credits OpenAI Codex Security — Khai Tran and Sylvie Mayer as reporters; mcollina and aduh95 are credited as fixers.
What to do
Update Node to 22.23.4, 24.22.1 or 26.12.1. Node 20 and earlier are end of life and receive no fix, which the advisory states plainly: "End-of-Life versions are always affected when a security release occurs."
Update the Brotli library itself anywhere you have it as a system package or a vendored copy — 1.0.10, 1.1.1 or 1.2.1.
Rebuild your container images. The official node images were rebuilt on 22 October. Google's distroless -debian13 is patched; -debian12 has not been rebuilt and is vulnerable.
Check your distro rather than assuming. Alpine patched brotli but has not updated its security database, so scanners reading it will neither flag nor clear you. Fedora patched only on 46. Arch has the fix in core-testing but not core. Debian still lists brotli as vulnerable and unfixed, and marks its nodejs package "unimportant" on the grounds that it uses the system Brotli. Ubuntu has no USN at all. SUSE is tracking nodejs but not brotli.
Note what is not affected, so you do not chase it: Deno uses a pure-Rust Brotli crate. nginx's ngx_brotli and Apache's mod_brotli are encoders only and never link the decoder. HAProxy, Caddy and Varnish OSS have no Brotli dependency.
There is no workaround inside Node. The advisory offers none, for this or for the other nine flaws. Vercel deployed inbound WAF rules on 21 October and is explicit about the limit: "It does not cover responses your functions fetch from other servers. It reduces exposure but does not replace patching."
If you are not certain what you run or where, that question is answerable from the outside before it is answerable from a manifest. A ClickScan external scan enumerates what responds on your addresses, and what it checks covers the surrounding exposure. Where it needs a person, ClickSecure AI's expert services cover that.
Sources: Node.js October 2026 security releases · Imperva: Node2Shell · Upstream Brotli fix commit · Brotli 1.2.1 release · Vercel bulletin · Debian security tracker
The 9.2 score is Google's as CNA; Node.js rates the flaw "high" without a number and NVD had not analysed it at the time of writing. Imperva's demonstration was on one architecture and one release line and did not succeed on every attempt. Downstream exposure above was established by reading each project's pinned revision, not by testing; no exploitation of any downstream consumer has been demonstrated. Distribution package status is moving daily — check your own vendor.

