← Blog

Node2Shell: check and update Node.js (CVE-2026-111497)

On 21 October 2026 the Node.js project released 22.23.4, 24.22.1 and 26.12.1 to fix a flaw in its built-in Brotli decoder: CVE-2026-111497, nicknamed Node2Shell (later also called HTTP2Shell or Broccoli2Shell, once other products turned out to be affected). The Node.js project rates it High; the CVE record scores it 9.2 of 10 (Critical, CVSS v4.0). In short: an attacker who can get your app to decompress a crafted Brotli stream can crash it, read process memory and, according to Node.js, possibly run code. This guide shows how to find out whether you are affected and how to fix it.

The short answer: run node --version wherever your app runs (server, container, CI). If it is not 22.23.4 or newer on line 22, 24.22.1 or newer on 24, or 26.12.1 or newer on 26, update. Node.js 25, 23, 20 and older get no fix and need to move to 24 (LTS) or 26.

What is Node2Shell, and is my app affected?

  • What it is: an out-of-bounds write in the Brotli decoder. An invalid “block switch” in the compressed data was treated as “need more input” instead of an error, so the streaming decoder kept writing past the end of a small buffer.
  • Who is affected: apps on Node.js 22.x, 24.x and 26.x before the fixed releases, when they decompress Brotli data that someone else controls. The affected upstream Google Brotli versions are 1.0.3 through 1.2.0, so other products with their own copy of the decoder can be affected too (see below).
  • Does it need a login? No. The attack travels in the data itself, in either direction: a malicious client can attack a server, and a malicious server can attack a client that accepts compressed responses.
  • Was it intentional that “Brotli” is in my app? Often not. You do not have to call a Brotli function yourself (see the next section).

Sources: Node.js security release, 21 October 2026, Aikido, Imperva.

How does an attacker reach the vulnerable code?

Two realistic paths into a typical web app:

  1. Inbound requests. Express 5 and body-parser 2.x can decompress request bodies sent with Content-Encoding: br. Imperva describes this as depending on how the parsers are configured; Aikido says any client can trigger it. Until you have tested it, assume your Express 5 app is reachable. A bare Node.js http server does not decode request bodies on its own.
  2. Responses your app fetches. The built-in fetch() (undici) decompresses Brotli responses automatically. A malicious or compromised server, for example behind a webhook, a link preview, an image proxy or any user-supplied URL, can answer with Brotli data and reach the decoder. Removing br from Accept-Encoding is not enough, because a malicious server can send Brotli anyway.

Direct use of zlib.brotliDecompress and zlib.createBrotliDecompress on untrusted data is the third, most obvious path.

Step 1: Find your Node.js version

The version that matters is the one that runs your app, not the one on your laptop.

  • On a server or VPS: node --version
  • In a container: docker run --rm <image> node --version, or docker exec <container> node --version for a running one.
  • On a platform (Vercel, Netlify, Render, Fly.io, Heroku): check the Node.js version setting of the project or the engines field in package.json, then redeploy so the platform picks up a fixed release.
  • In CI: check the node-version of your workflow (for example actions/setup-node).
  • On AWS Lambda: managed Node.js runtimes are patched by AWS; check that the function’s runtime management is not pinned to an old runtime version. Container-image functions must be rebuilt like any other image.
  • Express and body-parser: npm ls express body-parser shows whether Express 5 / body-parser 2.x is in the tree.

Don’t go by process.versions.brotli. node -p "process.versions.brotli" prints the version of the Brotli copy inside Node.js, but the fixed releases did not bump it: according to the 24.22.1 release notes, Node.js cherry-picked the single upstream fix into its existing copy. A fixed Node.js can report the same Brotli version as a vulnerable one. The Node.js version is what counts. One exception: builds that use the system Brotli library instead of their own copy, as Debian’s nodejs package does (Debian security tracker). Check with node -p "process.config.variables.node_shared_brotli": if it prints true, update the system brotli package and restart your Node.js processes. On Debian that is not the whole fix: the tracker still lists the nodejs package itself as affected, so install the next nodejs update as well.

npm audit, Dependabot and Renovate’s npm checks will not flag this: they look at your npm packages, and the vulnerable decoder is part of the Node.js runtime. A clean audit does not mean you are safe; the runtime version is what counts.

Or let a script do it. Our checker is a single file without dependencies; read it, then run it in your project folder:

curl -fsSLO https://zybee.ai/node2shell-check.mjs
node node2shell-check.mjs

It reads the Node.js or Bun that runs it, your Express and body-parser versions, Brotli calls in your code and the FROM lines of your Dockerfiles. For CI it can exit with a status code (--json for machine-readable output). To see whether a public website runs on Node.js at all, use the free Node2Shell check.

Which Node.js version fixes it?

LineStatusFixed in
26.xCurrent26.12.1
24.xLTS24.22.1
22.xLTS (maintenance)22.23.4
25.xEnd of lifeNo fix: move to 24 or 26
23.xEnd of lifeNo fix
20.x and olderEnd of lifeNo fix

If you have to leave an end-of-life line, pick 24 (LTS) unless you need 26. All dates are in our overview of Node.js, PHP and Python end-of-life dates. Bun users: a fixed Bun release (1.4.4 according to Aikido) bundles Brotli 1.2.1; compiled executables must be rebuilt.

The same Node.js release fixed nine other CVEs, three of them also rated High, so updating is worth doing for more than this one flaw:

CVEIssueSeverity
CVE-2026-111497Brotli decoder out-of-bounds write (Node2Shell)High
CVE-2026-105482dns.resolve truncates names containing a NUL characterHigh
CVE-2026-105483TLS certificate hostname bypass with IP addresses written in full-width digitsHigh
CVE-2026-106069TLS certificate hostname bypass when the host loosely resolves to an IP addressHigh
CVE-2026-105481Keep-alive socket processes a response written before the request was sentMedium
CVE-2026-106072DNS names in certificates can authenticate non-canonical IPv4 endpointsMedium
CVE-2026-106074crypto.randomUUID() / randomInt() entropy caches saved into startup snapshots and single-executable apps, so processes repeat valuesMedium
CVE-2026-106070ZipFile returns attacker-controlled prefix bytes after a failed header checkLow
CVE-2026-106071Permission Model filesystem over-grant via wildcard lookupLow
CVE-2026-106073Permission Model bypass with fs.realpathSyncLow

If you build single-executable apps or startup snapshots, rebuild them after the update (CVE-2026-106074).

Is Node2Shell being exploited?

As of 24 October 2026, no attacks in the wild are confirmed, but public proof-of-concept code exists and the details differ by source:

WhoWhat they sayDate
Node.js projectHigh severity; no workaround; no statement about active attacks21 Oct
ImpervaWorking proof of concept: code execution on the official Node.js 24.22.0 Linux arm64 image; needed several attempts; 24.22.1 rejected the input22 Oct
The Hacker News (as cited by other outlets)Another proof of concept reached code execution only on a deliberately weakened build; on a standard build it caused a crash and a limited memory read22 Oct
CISANot in the Known Exploited Vulnerabilities catalog as of 23 October23 Oct
Singapore CSA (alert AL-2026-154)“Patch immediately”; lists 22.x before 22.23.4, 24.x before 24.22.1, 26.x before 26.12.123 Oct

In short: reliable remote code execution against a standard production setup is not publicly proven. That is a reason to stay calm, not a reason to wait: the bug class is the kind that attackers keep refining once code is public.

How severe is it, really?

The score depends on who you ask: High (Node.js), 9.2 Critical (CVE record, CVSS v4.0, filed by Google), 9.8 (Singapore CSA, CVSS v3.1), 8.1 (OpenCVE, CVSS v3.1). The ratings use different versions of the scoring system. What they agree on: it is remotely reachable, needs no login, and the fix is a runtime update.

Beyond Node.js: Python, curl, git, Bun and more

The flaw lives in the upstream Google Brotli decoder (1.0.3 to 1.2.0), fixed in upstream releases 1.2.1, 1.1.1 and 1.0.10. Anything that bundles or links that decoder can be affected:

  • Python: the PyPI packages Brotli (fixed in 1.2.1) and brotlicffi (fixed in 1.2.1.0). Libraries such as urllib3, httpx and aiohttp can load them if they are installed, even if your code never imports them. Aikido reported on 23 October that pip-audit, Dependabot and Safety did not yet flag these versions, so check manually with pip list | grep -i brotli. Uninstalling the packages is a stopgap if nothing needs Brotli.
  • curl and git: security researcher Harry Sintonen has pointed out that CVE-2026-111497 is not limited to Node.js and that curl and git are involved (post 1, post 2). We have not yet found a vendor advisory from the curl or git projects; follow their release notes and your distribution’s updates. To see which Brotli your curl uses, run curl -V: the first line lists it as brotli/x.y.z. If it shows an affected version (1.0.3 to 1.0.9, 1.1.0 or 1.2.0), update curl or the system Brotli package it links against (distribution packages keep their old number once patched, so check the tracker).
  • Linux distributions (status as of 24 October, per their security trackers): Debian fixed brotli in bookworm (1.0.9-2+deb12u1) and trixie (1.1.0-2+deb13u1); Alpine fixed it in 1.2.1-r0 (3.23, 3.24 and edge) and 1.1.1-r0 (3.21); Ubuntu lists it as “needs evaluation” for its releases. Distributions backport fixes without changing the version number.
  • Envoy and Istio: Aikido lists fixed releases (Envoy 1.40.0, 1.39.3, 1.38.6, 1.37.8; Istio 1.29.9, 1.30.6, 1.31.2). We could not confirm these against the projects’ own release notes yet, so check them before relying on the numbers.
  • Web servers: according to Aikido, Apache’s mod_brotli and Nginx do not decode Brotli by default, so they are not the problem for the usual setup.

A fixed Node.js does not fix the Python, curl or git copies, and the other way round. Each copy of the decoder has to be updated on its own. Updating the system libbrotli package only helps programs linked against that library. The Python wheels of Brotli and brotlicffi, Bun and anything built with bun build --compile, and the official Node.js builds compile in a copy of their own; only an update of that program, or recompiling it, replaces it.

Step 2: Update

On your own server or VPS: use your package manager or version manager (nvm install 24, fnm, NodeSource packages, or your distribution’s updates), restart your app (PM2, systemd, Docker) and run node --version again. A running process keeps using the old binary until it restarts.

Docker: change the base image to a fixed tag (for example node:24 once it points to 24.22.1 or newer, or pin node:24.22.1), rebuild without cache (docker build --no-cache), redeploy, and check node --version in the running container. Images built before 21 October still contain the old runtime.

On a platform: set the Node.js version in the project settings, redeploy, and confirm in the build log. Vercel added firewall rules on 21 October that block the attack in incoming requests; they do not cover Brotli responses your functions fetch from other servers, so make sure your functions run on a fixed Node.js version too.

If you cannot update today: reject Content-Encoding: br on incoming requests at your reverse proxy, load balancer or middleware, and keep an eye on what your app fetches from user-supplied URLs. This reduces exposure but is not a fix.

After the update: test your main paths, then check CI, staging and any serverless or edge runtime that was set up separately. Forgotten staging servers and old build images are the usual leftovers.

What does this have to do with PHP2Shell?

Nothing technically: PHP2Shell (CVE-2026-109618 and CVE-2026-109619) is a pair of flaws in PHP, fixed on 21 October 2026, while Node2Shell is in a Brotli decoder. Both were disclosed the same week, and both are fixed by updating the runtime, not your application. If your site runs on WordPress, WooCommerce, Shopware or other PHP software, read our PHP2Shell guide.

Sources

Accessed on 24 to 26 October 2026.

Questions

What is Node2Shell (CVE-2026-111497)?

A memory-corruption flaw (out-of-bounds write) in the Brotli decompression code that Node.js bundles. A specially crafted Brotli stream can crash a program, leak process memory or, according to the Node.js project, allow remote code execution. "Node2Shell" is the name the security community uses; it is not an official Node.js name.

Are HTTP2Shell and Broccoli2Shell the same flaw as Node2Shell?

Yes. All three names refer to CVE-2026-111497. "Node2Shell" came first, when Node.js released its fix. Aikido later called it "HTTP2Shell" once it was clear that Python packages and other products were affected too, and a researcher site uses "Broccoli2Shell". None of them is an official name. The fix depends on where the decoder sits: for Node.js it is the runtime update described here.

Which Node.js versions fix CVE-2026-111497?

Node.js 22.23.4, 24.22.1 and 26.12.1, released on 21 October 2026, and any newer release on those lines. Node.js 25, 23, 20 and older are end of life and get no fix, so they need to move to 24 (LTS) or 26.

Am I affected if I never use Brotli in my code?

Possibly, without knowing it. Anything in your app that decompresses data you do not control can reach the decoder: built-in fetch() decompresses Brotli responses automatically, and Express 5 / body-parser 2 can decompress Brotli request bodies. Updating the runtime is the only complete fix.

Does npm audit show CVE-2026-111497?

No. npm audit checks the packages in your package-lock.json, and the vulnerable decoder sits in the Node.js runtime itself. A clean npm audit says nothing about this flaw. Check the runtime with node --version wherever your app runs.

Does updating Express, body-parser or an npm package fix it?

No. The vulnerable code is in the Node.js runtime itself, not in an npm package. Only a fixed Node.js version (or Bun, or a rebuilt container image) closes the flaw.

Is there a workaround if I cannot update today?

The Node.js advisory lists none. A stopgap that reduces inbound exposure is to reject requests with "Content-Encoding: br" at your reverse proxy, load balancer or middleware. It does not protect against malicious Brotli responses that your own app fetches from other servers.

Is Node2Shell being exploited?

No confirmed attacks in the wild as of 24 October 2026, but public proof-of-concept code exists. Imperva reported code execution on the official Node.js 24.22.0 Linux arm64 image, with multiple attempts needed. Another proof of concept reached code execution only on a deliberately weakened build. Treat it as urgent anyway: exploit code is public.

How severe is CVE-2026-111497?

The Node.js project rates it High. The CVE record (filed by Google) scores it 9.2 Critical on CVSS v4.0. Singapore's Cyber Security Agency lists 9.8 on CVSS v3.1. The scores differ because they use different scoring systems; all of them say to patch quickly.

Do Docker images need to be rebuilt?

Yes, if they contain Node.js. Pull a fixed base image tag, rebuild, and redeploy; running "docker pull" on an old tag is not enough if your image was built from an older base. Check with "node -v" inside the running container.

Is Python, curl or git affected too?

The flaw is in the upstream Google Brotli decoder (versions 1.0.3 to 1.2.0), so any product that bundles it can be affected. The Python packages Brotli and brotlicffi are fixed in 1.2.1 and 1.2.1.0. Researchers have also pointed to curl and git. Check your vendor's advisory; details below.

I run a website on shared hosting. Does this concern me?

Only if your site or app runs on Node.js. Classic WordPress or PHP hosting does not use Node.js; the PHP2Shell flaw from the same week is the one to check there. If you are unsure what your site runs on, our free Node2Shell check tells you in about 10 seconds.

Can Zybee Labs do the update for me?

Yes. We check which Node.js your app, containers and CI run, move them to a fixed version, rebuild images, test the important paths and roll back if something breaks. The first assessment is free and you get a quote before anything happens.