Node2Shell: Brotli Flaw Hits Python Packages
A security flaw in Brotli affects Python packages, causing common HTTP clients to automatically decompress responses using vulnerable code.
Overview
A memory safety flaw in Google's Brotli compression library allows a remote attacker to corrupt memory and potentially execute code. This issue affects Python packages named Brotli and brotlicffi, which compile the vulnerable decoder. Many popular HTTP clients, such as requests, httpx and aiohttp, use these packages to decompress data automatically. Because the decoding happens in the background, a Python service can be exposed without directly importing Brotli in its own code. Researchers have demonstrated remote code executionA flaw that lets an attacker run their own code on someone else's computer over a network against Node.js using the same decoder code. Python teams must upgrade to Brotli 1.2.1 and brotlicffi 1.2.1.0 to fix the problem.
Terms in this story
- 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
- 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
- Key
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- 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.
- extension
- A small add-on program installed inside a web browser to add features like ad blocking. Because a browser extension can often read and change every web page you visit, attackers buy or hijack legitimate extensions to steal session cookies and passwords.
- 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
- 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
- unauthenticated attacker
- Done without logging in or holding a valid account on the target system. An unauthenticated flaw is especially urgent in the news because any stranger on the internet can trigger it without needing a username or password first.
- information disclosure
- A software flaw or misconfiguration that unintentionally exposes private data, keys, or system details to unauthorized users. An information disclosure bug might return detailed server error messages, memory contents, or other customers' profile fields that help an attacker plan a deeper break-in.
- denial of service
- An attack that floods or crashes a server or network so real users cannot reach it. An attacker can cause a denial-of-service either by overwhelming a website with junk traffic or by sending a single malformed request that triggers a crash bug. Security+ objective 2.4 lists the term
- arbitrary 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.
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 SOCRadar website. Cite the article, not this page.
Read the full article on SOCRadar (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
"...disclosed alongside Node.js fixes on October 21..." Found by reading the article; these exact words are in it - Who is affected: "Python teams..."
Copied word for word from the article - Security+ 2.2 Explain common threat vectors and attack surfaces.
"......21, 2026, also reaches Python through the PyPI Brotli and brotlicffi packages. Both compile Google's..." Found in the opening sentences - Security+ 2.3 Explain various types of vulnerabilities.
"Node2Shell: Brotli Flaw Hits Python Packages..." Found in the headline - Security+ 4.3 Explain various activities associated with vulnerability management.
"The Node2Shell Brotli flaw (CVE-2026-111497), disclosed alongside Node.js fixes on October..." Found in the opening sentences - CYBR 101 week 10: the web, cookies, phishing, incident response and logs
"......Google's vulnerable Brotli C decoder, and popular HTTP clients such as requests, httpx and aiohttp..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"The Node2Shell Brotli flaw (CVE-2026-111497), disclosed alongside Node.js fixes on October..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Recommend computing environment vulnerability corrections.
"Python teams should move to the fixed versions..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Analyze countermeasures and mitigations against potential exploitations of programming language weaknesses and vulnerabilities in system and elements.
"A Python service can hand attacker-controlled Brotli data..." Found by reading the article; these exact words are in it
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
- 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
- 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