Node2Shell RCE via Malicious Brotli Decompression
Score: 4/10

Node2Shell RCE via Malicious Brotli Decompression

Researchers have demonstrated Node2Shell, a remote code execution (RCE) exploit targeting the bundled Brotli decoder in Node.js official builds via crafted compressed data.

Executive Summary

Security researchers at Imperva have successfully demonstrated a remote code execution (RCE) exploit, dubbed 'Node2Shell', against official Node.js builds. The vulnerability, tracked as CVE-2026-111497, resides in the bundled Brotli decoder. By providing a specifically crafted Brotli data stream, attackers can trigger an out-of-bounds write that leads to arbitrary code execution. While initial proofs-of-concept only achieved crashes, this new research confirms the feasibility of RCE on standard Linux arm64 builds.

The attack chain involves the decoder entering an invalid state when encountering an impossible point in a Brotli stream, subsequently writing past intended buffers. This can be triggered either by a server processing a malicious request body (e.g., via Express 5 middleware) or by a Node.js application fetching a malicious compressed response from a remote server.

This vulnerability is critical for organizations running Node.js 22.x, 24.x, or 26.x. Impact is particularly high for applications using `fetch()` on untrusted content or utilizing Express 5 body-parsers (`express.json()`, `express.raw()`, etc.) which now support Brotli by default. Immediate patching is required as there are no effective runtime workarounds.

Key Details

Threat Name

Node2Shell

Affects

Node.js 24.22.0, Node.js 22.x, Node.js 24.x, Node.js 26.x, Express 5.0.0 to 5.3.0

Adversary

—

MITRE Techniques

—

Malware/Tools

None identified

Report Score

4out of 10
Quality Score
Poor
IOC Quality0
TTP Details3
Detection Guidance3
Enterprise Relevance8
Clarity & Structure9
Technical Depth5

Sources