← All field notes

How to Patch Node2Shell and HTTP2Shell on VMs, Containers and Kubernetes

Find and patch vulnerable Brotli decoders across Node.js, Bun, Python, container images and Kubernetes, then verify each running workload.

Node2Shell patch guide covering Node.js, Bun, Python, .NET, Brotli and Istio.

Node2Shell (CVE-2026-111497) started as a Node.js bug and turned into HTTP2Shell: an out-of-bounds write in Google's Brotli decoder that ships inside Node.js, Bun, Python packages, .NET, Envoy, Istio and many Linux distros. Public proof-of-concept code exists, so treat it as urgent. This guide shows how to find every copy of the vulnerable decoder and patch it on VMs, in container images and across Kubernetes.

If you missed the background, read our breakdown of the October 2026 2Shell attacks first.

Before you start: what "patched" means

These are the fixed versions as of 30 October 2026:

  • Node.js: 22.23.4, 24.22.1 or 26.12.1. Node 20, 23, 25 and older are end-of-life and get no fix.

  • Bun: 1.4.4 or later.

  • Python: Brotli 1.2.1 and brotlicffi 1.2.1.0.

  • Google Brotli (libbrotli): 1.2.1, 1.1.1 or 1.0.10.

  • .NET: 8.0.33, 9.0.22 or 10.0.14. .NET 7 gets no fix.

  • Envoy: 1.40.0, 1.39.3, 1.38.6 or 1.37.8.

  • Istio: 1.31.2, 1.30.6 or 1.29.9.

  • Java brotli4j: 1.24.0.

Who is exposed first: services that decompress untrusted Brotli data. That includes Express 5 and body-parser 2, which decode Content-Encoding: br request bodies by default, and any service that uses fetch(), requests, aiohttp or httpx to call URLs it doesn't control.

Part 1: Patch on a VM

Find every runtime on the machine

Official Node.js binaries bundle their own Brotli, so updating the OS library does not fix them. Start by finding every copy.

Check the active Node.js version:

bash
node --version

List every node binary on the PATH:

bash
which -a node

List versions installed with nvm:

bash
ls ~/.nvm/versions/node

Upgrade Node.js

1 of 5 sections shown

Anees Khan

Co-Founder & CTO at Turf Dev, focused on Kubernetes, platform engineering, cloud infrastructure, and production reliability. I write about real-world infrastructure problems, how we investigate them, and the engineering approaches used to solve them.

Meet Turf Dev ↗

Discussion

Have a question or something to add? Share it below.

Comments appear immediately. Please keep the discussion respectful.

No comments yet. Be the first to join the discussion.

Keep exploring

More from the field.

All articles ↗

Platform Mandate

Request Architecture Review

Review platform posture, reliability constraints, and cost governance priorities with an infrastructure engineering team.

Request Architecture Review