CVE-2025-6176 — Vulnerability in scrapy — CVE Details
Scrapy is vulnerable to a denial of service (DoS) attack due to flaws in brotli decompression implementation
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.71%). Schedule for your next planned update.
Does your project use an affected scrapy version?
Paste your requirements.txt to check it for CVE-2025-6176 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published October 31, 2025 (391 days ago).
- Last revised September 10, 2026 — 314 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "scrapy>=2.13.4"
pip install "brotli>=1.2.0"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: PyPI (2).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-400Uncontrolled Resource ConsumptionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-6176ADVISORY
- https://github.com/google/brotli/issues/1327WEB
- https://github.com/google/brotli/issues/1375WEB
- https://github.com/google/brotli/pull/1234WEB
- https://github.com/scrapy/scrapy/pull/7134WEB
- https://github.com/google/brotli/commit/67d78bc41db1a0d03f2e763497748f2f69946627WEB
- https://github.com/scrapy/scrapy/commit/14737e91edc513967f516fc839cc9c8a4f8d91daWEB
- https://github.com/google/brotliPACKAGE
- https://github.com/google/brotli/releases/tag/v1.2.0WEB
- https://huntr.com/bounties/2c26a886-5984-47ee-a421-0d5fe1344eb0WEB
Frequently Asked Questions
- What is CVE-2025-6176?
- Scrapy is vulnerable to a denial of service (DoS) attack due to flaws in brotli decompression implementation. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2025-6176?
- CVE-2025-6176 affects scrapy and brotli. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-6176 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 49% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-111497CRITICAL
Out-of-bounds write in the Brotli decoder ("Node2Shell") also affects the PyPI Brotli package
- CVE-2026-111497CRITICAL
Brotli: Out-of-bounds write in the Brotli decoder ("Node2Shell") also affects the PyPI Brotli package
- CVE-2026-128139HIGH
NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service
- CVE-2026-129222HIGH
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()
- CVE-2020-8927MEDIUM
Integer overflow in the bundled Brotli C library