This one hides in a corner of Node you probably never think about: the Brotli decompressor.

At a glance

  • CVE: CVE-2026-111497 — nicknamed “Node2Shell”. The underlying Brotli flaw shows up in other Brotli bindings too (standalone Brotli, the PyPI brotli/brotlicffi packages).
  • Severity: 9.8 (Critical) at NVD. The Brotli advisory scores it 9.2 on CVSS 4.0 — either way, very high.
  • Affected: Node.js 22.x below 22.23.4, 24.x below 24.22.1, and 26.x below 26.12.1. The bug lives in the Brotli decoder that ships inside Node.
  • Known exploited: Yes — it’s on CISA’s KEV list.

What’s going on

Node bundles Google’s Brotli library to handle Brotli (br) compression. The decoder mishandles a malformed “block switch” in a compressed stream: instead of rejecting it, it treats the bad block as “I need more input” and keeps writing to an internal eight-byte buffer, spilling past the end of it. If an attacker can get your app to Brotli-decompress data they control — anything you run through node:zlib’s Brotli decoder — they can scribble over process memory, which can crash the app, leak memory, or let them run code. The Brotli folks describe it as something a remote, unauthenticated attacker can set off with a crafted stream.

So who should care? Any Node app that decompresses untrusted Brotli input with node:zlib — think accepting Content-Encoding: br request bodies, or unpacking Brotli data you fetched from somewhere else.

Timeline

  • Disclosed: 2026-10-21
  • Patch released: 2026-10-21 (on or just after)

== UPDATE ==

The October 2026 security releases take care of it.

  • Patch available: Yep.
  • Fixed in: Node.js 22.23.4, 24.22.1, 26.12.1. Later releases on each line include the fix too, so it’s worth checking nodejs.org for the current version — newer ones have shipped since.
  • How to apply: Upgrade Node to the fixed (or newer) release on your line and redeploy. If you also lean on a standalone Brotli library somewhere, bump that while you’re at it (standalone Brotli to 1.0.10 / 1.1.1 / 1.2.1; PyPI brotli to 1.2.1, brotlicffi to 1.2.1.0).
  • If you can’t patch yet: steer clear of decompressing untrusted Brotli input through node:zlib until you do — the advisories don’t offer another workaround.

References