Critical

Brotli: Out-of-bounds write in the Brotli decoder ("Node2Shell") also affects the PyPI Brotli package

  • Disclosed: 22.10.2026
  • Updated: 06.11.2026 01:17

The source advisory has changed since this explanation was prepared. Check the current technical data and original advisory below.

CISA confirms exploitation of this vulnerability in real attacks. Prioritise checking whether your application is affected. CISA KEV · CC0 1.0

A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli versions 1.0.3 through 1.2.0 on all platforms allows a remote unauthenticated attacker to corrupt adjacent decoder state memory, disclose sensitive memory contents, cause a denial of service, or potentially execute arbitrary code using a crafted Brotli-compressed stream.

Users need to update any Brotli libraries or binaries between 1.0.3 through 1.2.0 to the latest available version: 1.0.10 or 1.1.1 or 1.2.1.

What to do

Update any Brotli libraries or binaries between 1.0.3 through 1.2.0 to the latest available version: 1.0.10, 1.1.1, or 1.2.1.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) brotli < 1.2.1 1.2.1
Python (PyPI) brotlicffi < 1.2.1.0 1.2.1.0

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness (CWE)
CWE-252
Platform
Python (PyPI)
Package
brotli, brotlicffi
Disclosed
22.10.2026
Updated
06.11.2026 01:17

Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.

OSV / GitHub Advisory Database - PYSEC-2026-4322 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-4323 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-9v8h-qqgm-4m35 - CC BY 4.0

Vulnerability history: brotli

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
09.2020 10.2026
Without a fix
0
Exploited in attacks
1

Severity breakdown

  • Critical 1
  • High 1
  • Medium 1

Disclosures per year

  1. 2020: 1
  2. 2021: 0
  3. 2022: 0
  4. 2023: 0
  5. 2024: 0
  6. 2025: 1
  7. 2026: 1
  1. Brotli: Out-of-bounds write in the Brotli decoder ("Node2Shell") also affects the PyPI Brotli package this entry
    Critical Exploited in attacks CVE-2026-111497 < 1.2.1 1.2.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.