Zero Day Room
Live
Vulnerabilities

Node.js patches critical Brotli decoder RCE flaw

Node.js has patched a high-severity remote code execution vulnerability in its Brotli decoder, affecting versions 22.x, 24.x, and 26.x.

Node.js has patched a high-severity remote code execution vulnerability in its Brotli decoder, affecting versions 22.x...

A high-severity remote code execution vulnerability in Node.js's Brotli decoder demands immediate updates from developers. The flaw, tracked as CVE-2026-111497, affects Node.js versions 22.x, 24.x, and 26.x, with patches released on October 21.

Attackers can trigger the flaw when Node.js decompresses malicious Brotli data. This can occur in server request bodies, fetch responses, or through direct use of the zlib module. The vulnerability is an out-of-bounds write that can lead to code execution.

Popular web frameworks are specifically at risk. Express versions 5.0.0 through 5.3.0 and body-parser versions 2.0.0 through 2.3.0 automatically decompress request bodies marked with Content-Encoding: br. This default behavior makes applications using these versions vulnerable if left unpatched.

Patch released with specific version requirements

Node.js disclosed the flaw and released fixes on October 21. The patch in version 24.22.1 is designed to reject malicious data without allowing code execution. Developers must upgrade to a patched release to secure their systems.

The required updates are version-specific. The following table details the secure versions for each affected active release line:

Affected Release LineSecure Version
Node.js 22.x22.23.4
Node.js 24.x24.22.1
Node.js 26.x26.12.1

Users must upgrade to these versions or a newer patch release within the same line. The Bun JavaScript runtime, which uses a similar Brotli implementation, also requires an update. Bun users must upgrade to version 1.4.4 or newer to resolve the same underlying issue.

Older Node.js releases will not receive a fix. Versions 25.x, 23.x, 20.x, and all earlier releases are end of life and are not patched for this vulnerability. Node.js rates the flaw as high severity, one step below critical.

Workarounds and ecosystem responses

The official Node.js advisory states there is no direct workaround within the runtime itself. However, blocking Brotli-encoded requests at the network edge can reduce inbound attack exposure. The deployment platform Vercel has implemented edge firewall rules designed to block attempted exploits of this vulnerability.

Security firm Aikido Security has updated its scanning tools to detect the vulnerability. Its platform can now identify affected code repositories and container images. As of October 22, no exploitation of this flaw in the wild has been confirmed.

Upgrade to Node.js 24.22.1 or an equivalent patch release to resolve the Brotli decoder vulnerability.

Related coverage

More from Vulnerabilities