CVE-2025-6176: Scrapy is vulnerable to a denial of service (DoS) attack due to flaws in brotli decompression implementation
Scrapy versions up to 2.13.3 are vulnerable to a denial of service (DoS) attack due to a flaw in its brotli decompression implementation. The protection mechanism against decompression bombs fails to mitigate the brotli variant, allowing remote servers to crash clients with less than 80GB of available memory.
Published Oct 31, 2025 · Updated Nov 17, 2025
Affected packages
brotli
- Ecosystem
- PyPI
- Affected
- <= 1.1.0
- Fixed in
- 1.2.0
- Check
pip show brotli
Scrapy
- Ecosystem
- PyPI
- Affected
- <= 2.13.3
- Fixed in
- 2.13.4
- Check
pip show Scrapy
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Scrapy versions up to 2.13.3 are vulnerable to a denial of service (DoS) attack due to a flaw in its brotli decompression implementation. The protection mechanism against decompression bombs fails to mitigate the brotli variant, allowing remote servers to crash clients with less than 80GB of available memory. This occurs because brotli can achieve extremely high compression ratios for zero-filled data, leading to excessive memory consumption during decompression. Mitigation for this vulnerability needs security enhancement added in brotli v1.2.0.
Credited to smithcoin, Cycloctane.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-6176
- https://huntr.com/bounties/2c26a886-5984-47ee-a421-0d5fe1344eb0
- https://github.com/google/brotli/pull/1234
- https://github.com/google/brotli/commit/67d78bc41db1a0d03f2e763497748f2f69946627
- https://github.com/google/brotli/releases/tag/v1.2.0
- https://github.com/google/brotli/issues/1375
- https://github.com/scrapy/scrapy/pull/7134
- https://github.com/google/brotli/issues/1327
- https://github.com/scrapy/scrapy/commit/14737e91edc513967f516fc839cc9c8a4f8d91da
- https://github.com/advisories/GHSA-2qfp-q593-8484
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-111497
Brotli: Out-of-bounds write in the Brotli decoder ("Node2Shell") also affects the PyPI Brotli package
critical9.8ExploitedOct 22, 2026CVE-2026-105782
Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware
high7.5Mar 13, 2026CVE-2024-1968
Scrapy leaks the authorization header on same-domain but cross-origin redirects
medium5.9May 14, 2024GHSA-23j4-mw76-5v7h
Scrapy allows redirect following in protocols other than HTTP
medium6.5May 14, 2024GHSA-jm3v-qxmh-hxwv
Scrapy's redirects ignoring scheme-specific proxy settings
medium4.3May 14, 2024
