Brotli Decoder Flaw Behind Node.js RCE Also Affects Bun, Python and Other Widely Used Software
A memory flaw in Google's Brotli decoder lets crafted data corrupt memory, potentially allowing attackers to run code on affected software.
Overview
A memory-corruptionA class of software bugs where a program accidentally overwrites or misreads its own working memory flaw in Google's Brotli decoder allows crafted compressed data to overwrite past the end of a buffer and corrupt a program's memory. This issue affects widely used software including Bun, Python packages, and Envoy proxies that unpack Brotli-compressed data. The vulnerability can cause a crash, a memory leakA bug where a program fails to free memory it no longer needs, gradually exhausting system memory, or the execution of attacker-controlled code. Because the bug is in the C code that unpacks a Brotli stream, it travels into anything that reuses that code, from language runtimesThe environment in which a program executes, or the period of time while the program is actively running to proxies to Python packages. Each program ships its own copy of the decoder, so every one has to update that copy on its own. A program is exposed only if it decodes Brotli data that someone else controls.
Terms in this story
- memory-corruption
- A class of software bugs where a program accidentally overwrites or misreads its own working memory. Buffer overflows and use-after-free bugs are forms of memory corruption that can crash an application or let an attacker redirect the processor to run malicious code. Security+ objective 2.3 lists the term
- memory leak
- A bug where a program fails to free memory it no longer needs, gradually exhausting system memory. An attacker who finds a repeatable memory leak in a network server can send thousands of requests until the server runs out of memory and crashes.
- runtimes
- The environment in which a program executes, or the period of time while the program is actively running. A flaw in a container or language runtime can let a program escape its isolation, and runtime security tools watch what a program actually does in memory while it runs.
- 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
- unpatched
- Running an older version of software that is missing a released security update for a known flaw. Even months after a vendor ships a fix, many breaches succeed because attackers scan the internet for unpatched servers that administrators have not updated yet. Security+ objective 2.3 lists the term
- 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)
- 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.
- web application firewall
- A filter placed in front of a website that inspects HTTP traffic and blocks common web attacks. Companies put a web application firewall in front of their web servers to spot and block SQL injection, cross-site scripting, and bot traffic before those requests hit the application code. Security+ objective 3.2 lists the term
- firewall
- A network barrier in software or hardware that allows or blocks traffic based on security rules. Organizations place a firewall between their internal network and the internet to block unwanted connections, and attackers often look for flaws in the firewall appliance itself. Security+ objective 3.2 lists the term
- disclosure
- The process of reporting and publishing details about a newly discovered security flaw in software or hardware. In security news, disclosure refers either to a researcher privately alerting a vendor about a bug or to a company publicly notifying customers about a breach.
- Red Team
- An exercise where security specialists mimic a real adversary to test an organization's people, networks, and detection. Unlike a standard scan that checks one app for bugs, red teaming simulates a full campaign with phishing, lateral movement, and privilege escalation to see how the defending team responds. Security+ objective 5.5 lists the term
- exploit
- 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
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 and Google shipped fixes..." Found by reading the article; these exact words are in it - Who is affected: "Bun, the Python Brotli and brotlicffi packages..."
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"Brotli Decoder Flaw Behind Node.js RCE Also Affects Bun, Python..." Found in the headline - Security+ 4.3 Explain various activities associated with vulnerability management.
"......set up to decompress Brotli. Tracked as CVE-2026-111497, the flaw allows crafted compressed data..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......set up to decompress Brotli. Tracked as CVE-2026-111497, the flaw allows crafted compressed data..." 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
- 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
- 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