CVE-2026-111497 Brotli Patch: Check Node, .NET, Python, Linux

CVE-2026-111497 is an out-of-bounds write in Google's Brotli decoder, and it is being exploited. CISA added it to its Known Exploited Vulnerabilities catalog on October 27, 2026, and Singapore's Cyber Security Agency warned of active exploitation on October 30. Update to Brotli 1.2.1 (or 1.1.1 / 1.0.10), Node.js 26.12.1, 24.22.1 or 22.23.4, .NET 10.0.14, 9.0.22 or 8.0.33, or Python Brotli 1.2.1, then restart services and rebuild images, because many apps carry their own copy of the decoder.

Written 2026-10-31. Versions and dates come from the vendor advisories and distro trackers listed at the end, all checked on 2026-10-31. Items that come only from third-party write-ups are marked in the text. I did not run an exploit, and I did not test every command below on every platform listed, so try them on a staging host first.

What changed: CVE-2026-111497 in one timeline

The bug is in the streaming decoder. Per the Node.js advisory, an invalid block switch was reported as "needs more input" instead of a permanent format error, so the decoder kept appending bytes to an eight-byte internal buffer. An attacker who can feed Brotli data to your app can corrupt process memory. The result can be a crash, leaked process memory or remote code execution.

You will see the same flaw under three nicknames: Node2Shell, Broccoli2Shell and HTTP2Shell. They all refer to this one CVE.

Date (2026)Event
Oct 21Brotli 1.2.1 and Node.js security releases ship
Oct 22Python Brotli 1.2.1 reaches PyPI
Oct 25Microsoft publishes out-of-band .NET updates
Oct 26Ubuntu publishes USN-8956-1; Red Hat opens bulletin RHSB-2026-015
Oct 27CISA adds the CVE to the KEV catalog
Oct 30Singapore CSA alert: public proof-of-concept, active exploitation reported
Nov 10CISA remediation deadline for US federal agencies
CVE-2026-111497 timeline card from the October 21 Brotli fix to the CISA KEV listing, the October 30 exploitation alert and the November 10 federal deadline
From fix to active exploitation in nine days

The sources I read confirm exploitation but do not describe specific victims or campaigns. Early reports that Microsoft had seen no evidence of exploitation predate the CISA listing, so do not rely on them.

Why the severity scores disagree

SourceRating
Google (CNA), CVSS 4.09.2 Critical
NVD and Singapore CSA, CVSS 3.19.8 Critical
Microsoft and Red Hat, CVSS 3.18.1 High / Important
Node.js projectHigh

Red Hat scores attack complexity as high, while NVD scores it as low. That difference explains most of the gap. For prioritizing, the KEV listing matters more than the decimal: treat any internet-facing path that decodes Brotli as urgent.

Are you exposed to the Brotli vulnerability?

Having the library installed does not make you exploitable. Microsoft says this plainly for .NET, and Node.js does not decode Brotli on its own. You are exposed when your code, or a library it uses, decompresses Brotli data an attacker can influence. That happens in three ways:

  1. Inbound request bodies. A server accepts Content-Encoding: br and decodes it.
  2. Outbound responses. Your server fetches a URL it does not fully control, and the response comes back Brotli-encoded. Webhook and URL-preview features fit this pattern.
  3. Direct decoder calls. Code passes untrusted data to createBrotliDecompress(), BrotliStream or similar.

The second path is easy to miss. Sysdig notes that sending Accept-Encoding: identity does not protect server-side fetch(), because a malicious server can send Brotli anyway.

Brotli vulnerability exposure card showing three paths: inbound request bodies, outbound responses and direct decoder API calls
Exposure depends on what your app decodes, not just on what is installed
StackExposed when
Express 5 + express.json()By default: body-parser 2.x decodes br
Express 4 + express.json()Not on this path: body-parser 1.20.x returns 415 for br
Node.js server-side fetch()A response from an attacker-influenced server uses br
ASP.NET Corebr is enabled in request decompression
.NET HttpClientAutomaticDecompression includes Brotli or All
Python requests, urllib3, aiohttpBrotli or brotlicffi is installed
Python httpxInstalled with the brotli extra
EnvoyBrotli decompression is enabled

The Node.js rows come from Sysdig's analysis, the .NET rows from Microsoft and the Python rows from Aikido. The Envoy row comes from third-party summaries. .NET Framework is not affected, per Microsoft.

CVE-2026-111497 decision flow from checking whether a service decodes untrusted Brotli to patching, restarting and applying stopgaps
Patch everything, but start with services that decode untrusted Brotli
View PlantUML source
@startuml
skinparam shadowing false
skinparam defaultFontSize 14
start
:Find runtime and library versions;
if (Below the fixed version?) then (no)
  :Confirm processes restarted;
  stop
else (yes)
endif
if (Decodes untrusted Brotli?) then (yes)
  :Patch first, today;
  if (Patch possible now?) then (no)
    :Block or disable Brotli;
  else (yes)
  endif
else (no)
  :Patch in normal window;
endif
:Update and rebuild;
:Restart and re-check versions;
stop
@enduml

How to check your environment for CVE-2026-111497

Run the check where the code actually runs: inside the container, on the CI runner and on the serverless build image, not only on your laptop.

Node.js

node -v
npm ls express body-parser
grep -rnE "createBrotliDecompress|brotliDecompress" src/
docker exec <YOUR_CONTAINER> node -v

.NET

dotnet --list-runtimes
dotnet --list-sdks
grep -rnE "BrotliStream|BrotliDecoder|AutomaticDecompression|AddRequestDecompression" --include=*.cs .

Python

pip show Brotli brotlicffi
pipdeptree -r -p Brotli
grep -niE "brotli" requirements*.txt poetry.lock uv.lock

You do not need to import Brotli yourself. Aikido notes that requests and urllib3 use it automatically once it is installed.

Linux system library

Use the line for your distro: dpkg on Debian and Ubuntu, rpm on RHEL, Fedora and Amazon Linux, apk on Alpine. The find line looks for copies outside the package manager.

dpkg -l 'libbrotli*'
rpm -q brotli
apk info -v brotli-libs
sudo find / -xdev -name 'libbrotli*' 2>/dev/null

find will not reveal a decoder statically linked into a binary. Microsoft and Aikido both warn about this: updating the system library does not fix an app that bundles its own copy, including self-contained .NET apps and statically linked curl builds.

Fixed versions: the Brotli patch table by runtime

ComponentFixed inNote
Brotli (upstream)1.2.1, 1.1.1, 1.0.10Affected: 1.0.3 through 1.2.0
Node.js26.12.1, 24.22.1, 22.23.420 and 25 are EOL: no fix
.NET10.0.14, 9.0.22, 8.0.33, 11.0.0-rc.3.26522.148SDKs: 10.0.114 / 10.0.403, 9.0.123 / 9.0.320, 8.0.133 / 8.0.427
Python Brotli1.2.1PYSEC-2026-4322
Python brotlicffi1.2.1.0PYSEC-2026-4323
Bun1.4.4Rebuild compiled executables
Java brotli4j1.24.0Per Aikido
Envoy1.40.0, 1.39.3, 1.38.6, 1.37.8Third-party summaries; confirm upstream
Istio1.31.2, 1.30.6, 1.29.9Third-party summaries; confirm upstream

Bun's own 1.4.4 notes list security fixes without naming this CVE, so the Bun row relies on Sysdig and Aikido. Network appliances have separate advisories, such as Palo Alto's PAN-OS notice. Check your vendor if you run one.

The same Node.js release also fixes nine other issues, including TLS hostname bypasses, and updates the CA bundle after the eMudhra intermediate compromise. See our eMudhra trust store guide if you manage CA stores separately.

Linux distro packages

DistroPackageFixed version
Ubuntu 26.10brotli1.2.0-4ubuntu0.1
Ubuntu 26.04 LTSbrotli1.2.0-3ubuntu0.1
Ubuntu 24.04 LTSbrotli1.1.0-2ubuntu0.1
Ubuntu 22.04 LTSbrotli1.0.9-2ubuntu0.1
Ubuntu 20.04 (ESM, Pro)brotli1.0.7-6ubuntu0.1+esm1
Debian 13 trixiebrotli1.1.0-2+deb13u1
Debian 12 bookwormbrotli1.0.9-2+deb12u1

These versions look older than 1.0.10 or 1.1.1 because distros backport the fix. A scanner that compares only the upstream number may keep flagging them, so check the distro tracker before you panic.

RHEL: The status needs a manual check. Red Hat's bulletin RHSB-2026-015 lists RHEL 7 through 10 as affected, was still marked ongoing and listed no errata when I read it on October 31 (its last update was October 27). Third-party reports disagree on whether standard repositories now have fixes. Trust the Red Hat Customer Portal and dnf output over any blog, including this one.

Node.js from a distro package is a special case. On Ubuntu 22.04 and later, and on Debian, Node.js links to the system Brotli library. There, node -v does not tell you whether you are patched; libbrotli1 does. Ubuntu 20.04's Node.js uses its own vendored copy and is listed as vulnerable with no fixed version. On RHEL 8 and 9, the nodejs:24 module bundles Brotli while nodejs:22 uses the system library, and .NET 8 bundles it on RHEL 8 through 10.

Brotli patch routing card showing which update fixes which install: system library packages, bundled runtimes, self-contained apps and container images
Which update actually fixes which kind of install

Update and restart commands

Node.js

With nvm:

nvm install 24.22.1
nvm alias default 24.22.1

With Docker, pin FROM node:24.22.1-slim in your Dockerfile, then force a fresh base image:

docker build --pull --no-cache -t <YOUR_IMAGE> .

Then restart the service and confirm with node -v inside the running process's environment. If you are still on Node.js 20 or 25, move to a supported line. Our Node.js 26 upgrade checklist covers the jump, and Vercel's bulletin says projects on Node.js 22 or 24 need only a redeploy for its runtime protections. Projects on 20 must change version.

.NET

Install the updated runtime or SDK from your usual channel, then:

sudo systemctl restart <YOUR_SERVICE>

Self-contained and NativeAOT apps must be republished:

dotnet publish -c Release -r linux-x64 --self-contained

A machine-wide runtime update does not reach self-contained apps or a decoder already linked into a NativeAOT executable. Microsoft requires a rebuild and redeploy for both.

Python

Upgrade the package you have. Run the second line only if you already use brotlicffi:

pip install -U "Brotli>=1.2.1"
pip install -U "brotlicffi>=1.2.1.0"

For lockfile projects, use the command for your tool:

uv lock --upgrade-package brotli
poetry update brotli

Pin the floor in your constraints file and restart long-running workers such as Celery or Gunicorn.

Debian and Ubuntu

sudo apt update
sudo apt install --only-upgrade libbrotli1 brotli python3-brotli

Then find processes still holding the old library in memory:

sudo lsof -nP 2>/dev/null | grep -i libbrotli | grep -iE 'DEL|deleted'

Restart anything that appears. A package upgrade does not change code already loaded into a running process. If you plan to move releases at the same time, our Ubuntu 26.10 upgrade guide has the steps.

RHEL family

sudo dnf check-update brotli
sudo dnf upgrade --refresh brotli

If dnf offers nothing, use the stopgaps below and watch the Red Hat bulletin.

Brotli patch checklist card: update, rebuild images without cache, restart processes, verify versions in the running environment
Four steps, and the restart is the one people skip

Stopgaps if you cannot patch CVE-2026-111497 today

These reduce exposure. They do not fix the bug.

Reject br at the edge. Red Hat and Microsoft both suggest this. For nginx, add to the server block and test with nginx -t:

if ($http_content_encoding ~* "(^|,\s*)br(\s*,|$)") {
    return 415;
}

This covers inbound requests only. It does nothing for responses your services fetch.

Express. express.json({ inflate: false }) rejects compressed bodies. It also rejects gzip, so test your clients first.

Node.js code. Avoid zlib.brotliDecompress() and zlib.createBrotliDecompress() on untrusted data.

ASP.NET Core and HttpClient. Remove the br provider from your existing AddRequestDecompression setup, and exclude Brotli from AutomaticDecompression. Microsoft also warns against adding decompression features you do not already use, since that can create new denial-of-service risk.

Python. Uninstall Brotli and brotlicffi, and drop extras such as httpx[brotli]. Expect errors if a server sends Brotli anyway.

Containment. Restrict outbound network access for services that fetch third-party URLs, run them as an unprivileged user and keep secrets out of the process environment where you can.

CVE-2026-111497 stopgap card comparing inbound blocks, outbound limits and code changes, with a note that each one only reduces exposure until you patch
Stopgaps buy time; only the patch removes the bug

If something goes wrong after the patch

SymptomLikely causeFix
Container still shows the old Node.jsCached floating tagdocker pull, pin the tag, rebuild
node -v unchanged after apt upgradeDistro Node.js uses system BrotliNormal; check libbrotli1, restart
Scanner still flags a patched distroBackported version numberCompare with the distro tracker
.NET app still vulnerable after updateSelf-contained or NativeAOT buildRepublish and redeploy
Clients get 415 errorsYour stopgap blocks compressed bodiesAllow gzip, or ask clients to send plain bodies
Crashes continue after the patchPossible exploit attempts or an unpatched copyCheck every process's runtime, then the logs below

Signs of exploitation to look for

Sysdig reports that failed attempts usually crash the Node.js process, so unexplained crashes in web-facing services deserve a look. Other signals include shell processes spawned by the runtime, unexpected outbound connections, malware downloads and cryptominers.

Patching does not undo a compromise. Because the bug can leak process memory even when code execution fails, rotate the secrets and cloud tokens that a process could reach if you find evidence of an attack.

FAQ

Is CVE-2026-111497 only a Node.js problem? No. The flaw is in Google's Brotli library. Canada's Cyber Centre names Node.js, .NET, PowerShell, Bun, Envoy, Istio and the Python Brotli and brotlicffi packages among the affected software, and says the list is not limited to those.

Do web servers that only compress responses need the fix? The flaw is in the decoder, so a server that only compresses output is not on the attack path described in these advisories. Still update, since the same host may decode Brotli elsewhere, such as in an HTTP client or a proxy filter.

I'm behind Vercel's WAF. Am I safe? Not completely. Vercel says its WAF covers inbound traffic through its network, but not responses your functions fetch from other servers. Self-hosted Next.js, external backends, CI runners and your own images still need the Node.js upgrade.

Does updating libbrotli fix everything on the server? No. It fixes programs that link the system library, after they restart. Official Node.js builds, self-contained .NET apps and statically linked tools carry their own decoder and need their own updates.

Which fix should come first? Start with internet-facing services that accept br bodies or fetch URLs you don't control. Then cover internal services, CI runners and developer tools.

Once this is done, keep your runtime on a supported line so the next fix reaches you quickly. Node.js users can continue with the Node.js 26 upgrade checklist.

References

All checked 2026-10-31.

Official advisories

Analysis and news

3 thoughts on “CVE-2026-111497 Brotli Patch: Check Node, .NET, Python, Linux”

Leave a Comment