Researchers Demonstrate Node2Shell RCE Exploit on Node.js Build Using Crafted Brotli Data
Researchers showed that malicious data can make an official Node.js build run attacker code, and the flaw has been fixed.
Overview
Security researchers at Imperva demonstrated a vulnerability in Node.js that allows attackers to run malicious code by feeding crafted data to the bundled Brotli decoder. This flaw affects applications on the 22.x, 24.x, and 26.x lines of Node.js, which is a popular platform for building web applications. The issue occurs when a service decodes Brotli-compressed data from either a request body or a response, a process that can be triggered by standard web frameworks like Express 5. Node.js disclosed the flaw and released fixes on October 21, and the updated version successfully rejects the malicious data without executing any code. No exploitationA piece of code or technique that uses a software flaw to break into or crash a system of the flaw in the wild has been reported as of October 22. Applications that decode untrusted Brotli data should update to the fixed release to prevent potential code executionA flaw that lets an attacker run any commands or program they choose on the target machine.
Terms in this story
- exploitation
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- code execution
- A flaw that lets an attacker run any commands or program they choose on the target machine. When an advisory warns that a bug allows arbitrary code execution, an attacker who triggers the flaw can install malware, read files, or take over the program's account.
- RCE
- A flaw that lets an attacker run their own code on someone else's computer over a network. This is one of the most dangerous bug classes in the news because an attacker across the internet can send a crafted request and take control of a server.
- proof of concept
- A working sample of code or steps that shows a reported security flaw can really be triggered. When researchers publish a proof-of-concept for a new bug, defenders can test their own systems, but criminals also watch for that code and adapt it for real attacks.
- CVE
- The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
- middleware
- Software that sits between a web server and application logic to handle tasks like login checks and logging. Web frameworks run every incoming request through middleware to check authentication cookies, so a bypass bug in middleware can expose protected pages across an application.
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- sanitizer
- A software filter or compiler check that cleans untrusted input or catches memory bugs during testing. Web apps run user comments through an HTML sanitizer to strip out script tags, and developers compile system programs with an address sanitizer to catch buffer overflows before release.
- out-of-bounds write
- A memory bug where a program writes data past the end of its allocated buffer. An out-of-bounds write can corrupt nearby variables or return addresses in memory, crashing the program or letting an attacker hijack what code runs next.
- patched
- A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
- container images
- A read-only template file that packages an application together with all the libraries it needs to run. Software teams download base container images from public registries to deploy cloud services, and a single outdated or backdoored container image can spread flaws across many servers.
- binary
- Base 2, where each byte is written as 8 ones and zeros. In security news, the word binary refers either to raw data made of ones and zeros or to a compiled executable program that runs directly on a computer's processor. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The Hacker News website. Cite the article, not this page.
Read the full article on The Hacker News (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"Node.js disclosed the flaw and released fixes..." Found by reading the article; these exact words are in it - Who is affected: "...applications that decode untrusted Brotli data..."
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"......data to the bundled Brotli decoder (CVE-2026-111497)." Found in the opening sentences - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"Researchers Demonstrate Node2Shell RCE Exploit on Node.js Build Using Crafted Brotli Data..." Found in the headline - Security+ 4.3 Explain various activities associated with vulnerability management.
"......data to the bundled Brotli decoder (CVE-2026-111497)." Found in the opening sentences - CYBR 101 week 11: penetration testing, OSINT, MITRE ATT&CK and hacking back
"......official build of Node.js run attacker-supplied code, security researchers at Imperva have demonstrated. Their "Node2Shell" proof..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......data to the bundled Brotli decoder (CVE-2026-111497)." Found in the opening sentences - CYBR 101 week 5: hashes, how passwords are stored and cracked, Linux basics
"......on the official Node.js 24.22.0 image for Linux arm64, with no debugger or custom build,..." Found in the opening sentences - CYBR 101 week 7: Linux, Windows, permissions and firewalls
"......on the official Node.js 24.22.0 image for Linux arm64, with no debugger or custom build,..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"Malicious Brotli data can make an application on an official build of Node.js run..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- CISA Warns of Active Attacks Exploiting Critical Node2Shell RCE Vulnerability in Node.js
- Broccoli2Shell (CVE-2026-111497): Exposure Risk & Response | DigiCert
- CVE-2026-111497: Node2Shell / HTTP2Shell Vulnerability May Allow RCE
- Node2Shell Vulnerability Actively Exploited in the Wild, CISA Warns
- CISA warns of hackers now exploiting critical Node2Shell flaw
- U.S. CISA adds Google Brotli and Adobe Commerce and Magento flaws to its Known Exploited Vulnerabilities catalog
- Adobe Commerce PolyShell Attacks Breach Hundreds of Stores as Brotli Exploit Traffic Emerges
- Brotli bug reaches far beyond Node.js (CVE-2026-111497)
- Node2Shell puts Microsoft and Node.js on Brotli patch duty
- Brotli2Shell: Frequently asked questions for Google Brotli decoder vulnerability (CVE-2026-111497)
- Critical 'HTTP2Shell' Brotli vulnerability triggers emergency patches
- Microsoft releases emergency .NET patches for critical Brotli flaw
- Microsoft Releases Out-of-Band Security Updates for Brotli and .NET tarballs Vulnerability
- Microsoft Issues Emergency Patch Update for Critical .NET Buffer Overflow Flaw
- Node2Shell: Brotli Flaw Hits Python Packages
- Microsoft Issues Emergency .NET Security Updates to Fix Four Vulnerabilities
- HTTP2Shell Vulnerability Extends Beyond HTTP, Affecting .NET, FFmpeg, ClickHouse, and Apache Arrow
- Brotli Decoder Flaw Behind Node.js RCE Also Affects Bun, Python and Other Widely Used Software
- Node2Shell CVE-2026-111497: Brotli Out-of-Bounds Write
- Python packages are also vulnerable to the Node2Shell Brotli flaw (CVE-2026-111497)
- New Node2Shell Node.js RCE Exploit Let Attackers Execute Malicious Code Through Brotli-Compressed Data
- Node2Shell: Node.js Brotli vulnerability allows remote code execution (CVE-2026-111497)
- Node.js Brotli Decoder Bug Could Allow Remote Code Execution in All Supported Versions
- Node.js Patches 10 Security Vulnerabilities, Including High-Severity RCE Flaw
- Node.js Releases Security Updates to Fix High-Severity TLS, DNS and Brotli Vulnerabilities