Researchers Demonstrate Node2Shell RCE Exploit on Node.js Build Using Crafted Brotli Data

Malicious data compressed with Brotli can cause an application built on an official binary of Node.js to execute arbitrary code, report security researchers at Imperva.

Their “Node2Shell” proof of concept was able to execute code on the official image of Node.js 24.22.0 for Linux arm64 with no debugger or modifications to the source code by leveraging the bundled Brotli decoder (CVE-2026-111497). Node.js has released patched versions of their software, and applications using Node.js that decode Brotli data from untrusted sources should update to the latest version.

The test that Imperva conducted was not always successful, and it took several tries for code execution to occur on their Linux arm64 instance. The results only concern one application and one architecture, as other versions and ports were not tested. On the patched 24.22.1 version of Node.js, the same input data was rejected, and no code was executed.

The demo goes beyond the first proof of concept, which was only able to execute code on a deliberately downgraded test build. On a normal build, the author of the proof of concept demonstrated a crash and limited read of process memory, claiming that an attack against a normal build was not achieved read more about Researchers Demonstrate Node2Shell RCE Exploit on Node.js Build Using Crafted Brotli Data

Get up to date on the latest cybersecurity news and enhance your knowledge of cybersecurity with our thorough coverage of the dangers, breaches, and solutions.

Leave a Reply

Your email address will not be published. Required fields are marked *