Skip to main content

CVE-2025-6176 — Vulnerability in scrapy — CVE Details

HIGH

Scrapy is vulnerable to a denial of service (DoS) attack due to flaws in brotli decompression implementation

Published October 31, 2025Updated September 10, 2026Source: OSV

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.

Check my requirements.txt

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
Update scrapy to 2.13.4 or later
pip install "scrapy>=2.13.4"
pip
Update brotli to 1.2.0 or later
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).

PackageFixed In
scrapy PyPI · Affected: 0.10.4.2364, 0.12.0.2550, 0.14.1, 0.14.2 (+100 more)2.13.4
brotli PyPI · Affected: 0.5.2, 0.6.0, 1.0.1, 1.0.4 (+5 more)1.2.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-400
    Uncontrolled Resource ConsumptionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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

CVSS Score
7.5

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.71%
EPSS percentile: 49

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

GHSA-2qfp-q593-8484
PYSEC-2026-1906
PYSEC-2026-2401

Related CVEs

  • CVE-2026-111497
    CRITICAL

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

  • CVE-2026-111497
    CRITICAL

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

  • CVE-2026-128139
    HIGH

    NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service

  • CVE-2026-129222
    HIGH

    Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()

  • CVE-2020-8927
    MEDIUM

    Integer overflow in the bundled Brotli C library

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my requirements.txt