# Node.js Brotli decoder bug — RCE risk in all supported versions

> A memory-safety flaw in the Brotli decompressor bundled with Node.js can be triggered by any Brotli-compressed input from an untrusted source.

- Org: Node.js
- Date: 2026-10-21
- Category: security
- Source: https://nodejs.org/en/blog/vulnerability/october-2026-security-releases
- Canonical page: https://ai-tldr.dev/releases/nodejs-cve-2026-111497-brotli-rce/

## In short

CVE-2026-111497 is an out-of-bounds write in Google Brotli 1.0.3–1.2.0 that can allow remote code execution. Node.js patched it on October 21; Aikido found Python Brotli packages, curl, Bun, Envoy and Istio are affected too.

## What it is

CVE-2026-111497 is a High-severity out-of-bounds write in the Brotli decoder that Node.js 22.x, 24.x, and 26.x bundle. Any application that decompresses attacker-controlled Brotli data — through node:zlib directly, or through fetch() when a server sends a Brotli-compressed response — is exposed. Node.js shipped patched releases across all three lines on October 21.

## How it works

The flaw sits in the google/brotli library at the version Node.js was pinned to. A malformed compressed stream triggers a write past the end of the decode buffer, which can corrupt adjacent memory. Brotli v1.2.1 fixed the issue by rejecting invalid input before any out-of-bounds write occurs. Node.js incorporated the same patch and published new release tarballs the same day.

## Why it matters

Node.js is one of the most widely deployed server runtimes, and proxying or fetching content from third-party servers is a very common pattern. Any such service automatically decompresses Brotli responses and falls within the attack surface. There is no configuration-level workaround: teams must upgrade to 22.23.4, 24.22.1, or 26.12.1.

## Who it's for

Node.js developers on 22.x, 24.x, or 26.x

## Try it

node --version, then upgrade to 22.23.4, 24.22.1, or 26.12.1

## Quick facts

- CVE: CVE-2026-111497
- Severity: High
- Impact: Remote code execution
- Affected versions: 22.x, 24.x, 26.x
- Fixed in: 22.23.4, 24.22.1, 26.12.1
- Workaround: None — upgrade is required
- Disclosed: October 21, 2026

## FAQ

### Which Node.js versions are affected by CVE-2026-111497?

CVE-2026-111497 affects all three current Node.js release lines: 22.x (fixed in 22.23.4), 24.x (fixed in 24.22.1), and 26.x (fixed in 26.12.1). Node.js 20.x and earlier are end-of-life and will not receive a patch, but are also vulnerable.

### How does the Node.js Brotli decoder bug enable remote code execution?

The bug is an out-of-bounds write in the Brotli decompression library that Node.js bundles. A specially crafted compressed stream triggers a write past the end of the decode buffer. It is reachable through the node:zlib module or automatically when fetch() receives a Brotli-compressed response from an untrusted server.

### Is there a workaround if I cannot upgrade Node.js right away?

No. The Node.js security team says no temporary workaround exists for CVE-2026-111497. Patching the standalone Brotli library does not update the bundled copy inside Node.js. The only fix is upgrading to 22.23.4, 24.22.1, or 26.12.1.

### Has CVE-2026-111497 been exploited in the wild?

As of October 22, 2026, no in-the-wild exploitation had been reported. A public proof-of-concept achieved code execution only on a deliberately weakened build; on a standard Node.js build, researchers observed a crash and a limited memory read rather than full remote code execution.

### Are Python apps affected by the Brotli bug CVE-2026-111497?

Python apps are affected when the Brotli or brotlicffi PyPI packages are installed, according to Aikido Security. HTTP clients such as requests/urllib3, httpx and aiohttp use those packages automatically to decode Brotli responses. The fix is Brotli 1.2.1 or brotlicffi 1.2.1.0, followed by rebuilding any container images that bundle them. Where Brotli support is optional, uninstalling both packages is a stopgap.

## Links

- [Security Release](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases)
- [THN Coverage](https://thehackernews.com/2026/10/nodejs-brotli-decoder-bug-could-allow.html)
- [Brotli v1.2.1](https://github.com/google/brotli/releases/tag/v1.2.1)
- [Aikido Analysis](https://www.aikido.dev/blog/python-packages-vulnerable-node2shell-brotli-cve-2026-111497)
