Uncontrolled Resource ConsumptionWeakness · CWE-400

CVE-2025-6176

HIGH · 7.5 CVSS v3.0 Published 2025-10-31
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
84/100
Remediation priority · High
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Scrapy versions up to 2.13.2 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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Scrapy up to version 2.13.2 contains a decompression bomb protection bypass in its brotli decompression implementation. While the framework implements safeguards againstzip-style decompression bombs, the brotli variant was not protected, allowing attackers to craft responses with extremely high compression ratios (especially on zero-filled data) that exhaust memory and crash the client with under 80GB available RAM.

MitigationUpgrade Scrapy to version 2.13.3 or later, which should include proper brotli decompression bomb protection. Until patched, consider disabling brotli compression support in Scrapy settings or implementing network-level filtering of excessively compressed responses.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check installed Scrapy version
    Run 'pip show scrapy' or 'python -c "import scrapy; print(scrapy.__version__)"' in your environment
    Affected if The version is 2.13.2 or lower
  2. Verify brotli package is installed
    Run 'pip show brotli' or check if the brotli or brotlicffi package is present in your environment
    Affected if The brotli package is installed and available to Scrapy
  3. Confirm brotli is not explicitly disabled in Scrapy settings
    Check your Scrapy settings file (settings.py) or Scrapy project configuration for the 'DOWNLOADER_CLIENT_BROTLI' or 'BROTLI_ENABLED' setting
    Affected if Brotli support is explicitly enabled or not explicitly set to False (defaults to enabled when package is present)

You are affected if Scrapy version is 2.13.2 or lower and the brotli package is installed with brotli support enabled in your configuration.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade Scrapy to version 2.13.3 or later, which should include proper brotli decompression bomb protection. Until patched, consider disabling brotli compression support in Scrapy settings or implementing network-level filtering of excessively compressed responses.

Recommended fix Moderate confidence

Scrapy > 2.13.2 (e.g., 2.14.0 or later stable release)

  1. 1. Verify current Scrapy version by running: pip show scrapy | grep Version
  2. 2. Upgrade Scrapy to the latest stable release which contains the fix for the brotli decompression bomb vulnerability: pip install --upgrade scrapy
  3. 3. Alternatively, specify a version greater than 2.13.2: pip install scrapy>=2.14.0
  4. 4. Verify the upgrade was successful: pip show scrapy | grep Version
  5. 5. Test that your Scrapy projects still function correctly after the upgrade
Caveat Minor version upgrades in Scrapy typically maintain backward compatibility, but test your spiders after upgrading as there may be subtle changes in behavior or deprecated features

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing4.0 h
  • Review / QA2.0 h
15.0 hours of engineering $2,640
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,224.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-6176 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-6176 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data