Technical terms with a dotted underline are explained on hover, tap or focus.

Node.js runs behind a very large number of web applications and APIs. A critical flaw in a component that almost every Node server ships with matters to anyone who operates such services. CVE-2026-111497, called Node2Shell (also HTTP2Shell or Broccoli2Shell), sits in the Brotli decoder that unpacks compressed data. This post explains who is affected and how to check.

What happened

  • Flaw: A write outside the intended memory area (out-of-bounds write) in Google's Brotli decoder, which Node.js uses.
  • Impact: According to Akamai it can cause a crash, disclosure of process memory or remote code execution, without authentication.
  • Rating: CVSS 9.2 (rated by Google's CNA under CVSS 4.0, according to ELLIO). Node.js itself rates it “high” (according to Akamai).
  • Fix: According to Akamai, Node.js released corrected versions on 21 October 2026.
  • Exploitation: According to GBHackers the US agency CISA added the flaw to its KEV catalog of known exploited vulnerabilities on 27 October 2026. US federal agencies must patch by 10 November.

How the flaw works

Brotli is a compression method that browsers and servers use to transfer web pages and responses in smaller form (recognisable by the header Content-Encoding: br). The flaw lies in how the decoder handles malformed data:

  • If a Brotli stream signals an invalid “block switch”, the decoder, according to Akamai, wrongly treated that as “more input is needed” instead of a permanent format error.
  • It then kept writing data into an internal buffer of eight bytes and wrote past its end.
  • According to ELLIO the flaw is already in Brotli 1.0.3 from March 2018. The fix was committed to Google's public repository on 27 February 2026 without a release and without an advisory.
  • The fix now returns a dedicated format error (BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH) so that broken streams are rejected.

Am I affected?

Affected Node.js versions (according to Akamai and ELLIO):

  • 26.x before 26.12.1
  • 24.x before 24.22.1
  • 22.x before 22.23.4
  • Discontinued lines (25.x, 23.x, 20.x and older) get no fix and must move to a supported line.

What matters is whether your application decompresses untrusted compressed data. The known paths:

  1. Requests with Brotli content in Express 5 with body-parser 2 (json, raw, text, urlencoded): They decompress requests with Content-Encoding: br by default because the inflate option is true (Akamai). According to GBHackers this can happen before the actual routes run. Koa with @koa/bodyparser is also affected (ELLIO). A bare Node HTTP module does not decode incoming Brotli bodies on its own, according to Akamai.
  2. Responses from foreign servers: The built-in fetch() decompresses Brotli responses. A malicious or compromised server can thus attack the client.
  3. Direct calls to zlib.brotliDecompress() or zlib.createBrotliDecompress() with foreign data.

Beyond Node.js (according to ELLIO): Bun before 1.4.4, Express 5.0.0 to 5.3.0 with body-parser 2.0.0 to 2.3.0, the Python packages Brotli and brotlicffi, Envoy, the Ruby gem brotli and Linux distributions that use the system library libbrotli. Akamai also states that, by its own telemetry, 61 percent of the networks it observes run affected Node versions; that is a vendor figure.

What is known about exploitation

  • Scans: Since 13 June 2026 ELLIO has seen a probing tool called node2shell-check that sent Brotli requests to many servers to find out which hosts decompress Brotli.
  • Attack attempt: On 26 October 2026 ELLIO recorded a 23,069,983-byte Brotli-encoded request aimed at Node.js 24.22.0 on x86-64. ELLIO attributes the source (94.154.43.7) to a mass-exploitation operator.
  • How dangerous that is in practice: ELLIO reports that the attack chain of this attempt produced no shell in 50 test runs. A separately validated chain did, against unmodified official binaries of Node.js, Express 5.3.0 and Koa 3. The attack depends on a memory offset that differs per build and, with ASLR enabled, succeeds around the fifth attempt according to ELLIO. With Express the worker process mostly just crashed in about 400 attempts.
  • Consequence of a crash: If core dumps are enabled, they can contain credentials such as session cookies and tokens (ELLIO).
  • Other researchers: According to ELLIO, Imperva reported an exploit for arm64 on Node.js 24.22.0 before ELLIO's test.

The sources differ in status: The Akamai post names no observed exploitation, ELLIO and GBHackers do. Plan for the harder situation.

What you should do now

  1. Check versions: Which Node.js version really runs in production, staging, CI, build images, serverless and on developer machines? Rely on the release version (for example node -v), not on process.versions.brotli: According to ELLIO and GBHackers that value shows the old number even on patched builds.
  2. Update: to Node.js 22.23.4, 24.22.1 or 26.12.1 (Bun 1.4.4). According to Akamai there is no workaround; only the update removes the flaw.
  3. Rebuild and restart: Recreate container images, lockfiles and compiled programs, restart processes. Update embedded copies of Brotli too (use an SBOM). ELLIO names fixed versions for Google Brotli (1.0.10, 1.1.1, 1.2.1), the PyPI package Brotli 1.2.1 and Debian/Alpine packages, among others.
  4. Leave outdated lines: Node 20, 23 and 25 will not be patched. Plan the migration.
  5. Restrict requests in the meantime: If you do not need compressed requests, set inflate: false in body-parser. Brotli requests are then rejected with HTTP 415 (Akamai). ELLIO advises rejecting requests with Content-Encoding: br until patched. That does not cover malicious responses from foreign servers and does not replace the update.
  6. Limit the network: Restrict access to Node services and outbound connections of vulnerable hosts (Akamai names microsegmentation).
  7. Limit core dumps: Restrict access and retention (ELLIO).
  8. Watch for traces: Unusually many crashes or restarts of Node processes and unusually large requests with Content-Encoding: br are a warning sign. That is my recommendation and not from the sources.

If you run web applications or APIs on Node.js and want to know how exposed they are, I can test them in a targeted way.

Sources

Note: Status as of 29 October 2026, based on three reports (Akamai, ELLIO, GBHackers); I did not read the notices of Node.js and Google themselves. The vendors' version details are authoritative. The recommendation on warning signs is my own judgement.