Brotli: Out-of-bounds write in the Brotli decoder ("Node2Shell") also affects the PyPI Brotli package
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.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | brotli | < 1.2.1 | 1.2.1 |
| Python (PyPI) | brotlicffi | < 1.2.1.0 | 1.2.1.0 |
References
- https://github.com/google/brotli/commit/0ed4268a4401abcb4472096340477cf4af7d1a2b
- https://www.cve.org/CVERecord?id=CVE-2026-111497
- https://opensourcemalware.com/blog/node2shell-affects-python
- https://nodejs.org/en/blog/vulnerability/october-2026-security-releases
- https://github.com/google/brotli/releases/tag/v1.2.1
- https://pypi.org/project/brotlicffi/
- https://pypi.org/project/Brotli/
- https://nvd.nist.gov/vuln/detail/CVE-2026-111497
- https://github.com/google/brotli/commit/50a9b70a4d5e1443fc40927952276b68fffa83a0
- https://github.com/google/brotli/commit/b418fa81c48262a86a95332b0bc6d62c30aa78b6
- https://github.com/google/brotli/commit/da9806362874b9bd4b552a3af360b5d6347beb12
- https://pypi.org/project/brotlicffi
- https://pypi.org/project/Brotli
- https://nodejs.org/en/blog/vulnerability/october-2026-security-releases#nodejs-brotli-decoder-out-of-bounds-write-permits-remote-code-execution-cve-2026-111497---high
- https://github.com/pypa/advisory-database/tree/main/vulns/brotlicffi/PYSEC-2026-4323.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/brotli/PYSEC-2026-4322.yaml
- https://github.com/google/brotli/releases/tag/v1.1.1
- https://github.com/google/brotli/releases/tag/v1.0.10
- https://github.com/google/brotli
- https://github.com/dotnet/announcements/issues/494
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-111497
- https://www.aikido.dev/blog/node2shell-nodejs-brotli-rce-cve-2026-111497
- https://patchtheplanet.org/brotli
- https://lists.debian.org/debian-lts-announce/2026/10/msg00049.html
- https://github.com/andybalholm/brotli/releases/tag/v1.2.7
- https://github.com/advisories/GHSA-9v8h-qqgm-4m35
- https://ellio.tech/en/blog/node2shell-cve-2026-111497-rce-on-stock-nodejs-builds
- https://broccoli2shell.com
- http://www.openwall.com/lists/oss-security/2026/10/23/25
- http://www.openwall.com/lists/oss-security/2026/10/24/6
- http://www.openwall.com/lists/oss-security/2026/10/26/12
- http://www.openwall.com/lists/oss-security/2026/10/26/13
- http://www.openwall.com/lists/oss-security/2026/10/26/16
- https://cert-portal.siemens.com/productcert/html/ssa-898633.html
- https://cert-portal.siemens.com/productcert/html/ssa-443410.html
- https://cert-portal.siemens.com/productcert/html/ssa-045512.html
- 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: brotlicffi
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
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.