Node2Shell: Node.js Brotli vulnerability allows remote code execution (CVE-2026-111497)
A security update fixed a flaw in Node.js that could let attackers run code by sending malicious data to apps that decompress it.
Overview
A security flaw in Node.js and Bun allows attackers to execute code by sending malicious compressed data to an application. The bug, known as Node2Shell, exists in the software's ability to decompress Brotli data, which is a format used to shrink web traffic. If an attacker can control the data being decompressed, they can crash the process, leak memory, or run their own commands. The issue affects anyone running these tools who processes data from untrusted sources, such as web requests or external server responses. The fix requires upgrading to specific patched versions, such as 22.23.4 for the 22.x line or 1.4.4 for Bun. Older release lines that are no longer supported will not receive this update and remain vulnerable.
Terms in this story
- vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- remote code execution
- 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.
- 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
- 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.
- security update
- 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
- malicious payload
- The part of an attack or malware file that carries out the harmful action on the target. A phishing email and an exploit are only the delivery steps, while the payload is the ransomware or spyware that actually runs once the computer is compromised.
- 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.
- servers
- 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.
- Encoding
- Rewrite data in another form so it can be carried; no key, anyone can reverse it. Students often confuse encoding with encryption at first, but systems encode data only so it travels safely through text protocols, not to keep it secret from anyone. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- Webhooks
- An automated HTTP message that one web service sends to another URL whenever a specific event happens. Legitimate apps use a webhook to post chat alerts when code is updated, while malware authors often abuse chat webhooks to send stolen passwords straight to their own channels.
- URLs
- The full web address used to locate a specific page, file, or resource on the internet. Security filters inspect every URL in an incoming message to see whether the domain name is a newly registered lookalike or points to a known credential-harvesting server. Security+ objective 4.5 lists the term
- containers
- A lightweight software package that runs an application isolated from other programs on the same host kernel. Cloud teams package web services inside containers so they start in seconds, and security stories warn about container escape bugs that let an attacker break out onto the host server.
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 Aikido website. Cite the article, not this page.
Read the full article on Aikido (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.
- Who is affected: "...anyone running Node.js or Bun..."
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"......Brotli vulnerability allows remote code execution (CVE-2026-111497)" Found in the headline - Security+ 2.5 Explain the purpose of mitigation techniques used to secure the enterprise.
"......remote code execution. See who is affected, patched versions and the fix." Found in the opening sentences - Security+ 4.3 Explain various activities associated with vulnerability management.
"......Brotli vulnerability allows remote code execution (CVE-2026-111497)" Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......Brotli vulnerability allows remote code execution (CVE-2026-111497)" Found in the headline - CYBR 101 week 3: cyber hygiene, privacy, OSINT and social engineering
"......remote code execution. See who is affected, patched versions and the fix." 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
- Researchers Demonstrate Node2Shell RCE Exploit on Node.js Build Using Crafted Brotli Data
- 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