Node2Shell: Node.js Brotli Remote Code Execution Vulnerability
Score: 9/10

Node2Shell: Node.js Brotli Remote Code Execution Vulnerability

A high-severity out-of-bounds write vulnerability in the Node.js Brotli decoder (Node2Shell) allows remote code execution when processing malformed compressed data.

Executive Summary

CVE-2026-111497, nicknamed 'Node2Shell', is a high-severity vulnerability (CVSS 9.2) affecting Node.js and Bun runtimes that utilize the Brotli compression library. The flaw exists in how the Brotli decoder handles malformed streams, potentially leading to an out-of-bounds (OOB) write. If an attacker can force an application to decompress a malicious Brotli payload, they may be able to crash the process, leak memory, or achieve remote code execution (RCE).

The vulnerability is particularly critical for applications that automatically decompress untrusted input, such as web servers using Express 5 or body-parser 2.0+, and applications making outbound requests using fetch() to untrusted servers. While exploitation in the wild had not been reported as of October 2026, researchers have successfully demonstrated RCE against official Node.js Docker images in lab environments. Immediate patching of affected runtimes is required to mitigate the risk.

Key Details

Threat Name

Node2Shell

Affects

Node.js 26.x before 26.12.1, Node.js 24.x before 24.22.1, Node.js 22.x before 22.23.4, Node.js 25.x, 23.x, 20.x and earlier, Bun before 1.4.4, Node.js 22.x (before 22.23.4), Node.js 24.x (before 24.22.1), Node.js 26.x (before 26.12.1), Node.js 24.22.0, Node.js 22.x < 22.23.4, Node.js 24.x < 24.22.1, Node.js 26.x < 26.12.1, Node.js 22.x (< 22.23.4), Node.js 24.x (< 24.22.1), Node.js 26.x (< 26.12.1), google/brotli, Node.js, Brotli 1.0.3–1.2.0, Python Brotli / brotlicffi, Bun, Envoy

Adversary

—

MITRE Techniques

—

Malware/Tools

None identified

Report Score

9out of 10
Quality Score
Excellent
IOC Quality6
TTP Details9
Detection Guidance10
Enterprise Relevance9
Clarity & Structure9
Technical Depth9

Sources