Node2Shell Vulnerabilities (CVE-2026-111497): Analysis and Remediation
An out-of-bounds write in Node.js's built-in Brotli decoder can be triggered by a request with a Brotli-encoded body, potentially allowing remote code execution. The flaw is in the runtime itself, so patching the application or its dependencies does not remove it.
Published on contrastsecurity.com
Node.js shipped security updates on October 21, 2026 to fix CVE-2026-111497, a high-severity flaw in its Brotli decoder that can allow remote code execution. The fix is an updated Node.js runtime.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely an out-of-bounds write in the Brotli decompression routine built into the Node.js runtime.
Impact
An attacker could potentially achieve remote code execution on the host, leading to data theft, lateral movement, and downtime, though the text notes that exploitation details are not public and a WAF is an unreliable control.
What the attacker needed
Node.js version before the fixed releases; Ability to send a request with Brotli encoding
The fix
The flaw was fixed in Node.js versions 26.12.1, 24.22.1, and 22.23.4; users should update the runtime and restart processes.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Node.js is a program that runs JavaScript on servers. It includes a decoder for Brotli, a way to compress data. A bug in that decoder means a specially crafted compressed request could let an attacker run their own commands on the server. Because the bug is in Node.js itself, updating your own code or libraries will not fix it; you must update Node.js.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.