Advisory

PYSEC-2026-1906

Also known as: CVE-2025-6176, GHSA-2qfp-q593-8484, PYSEC-2026-2401

Summary

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

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-13 16:43 UTC

Affected packages and fixes

scrapy

PyPI · All systems

Affected

  • introduced 0, fixed 2.13.4 (ecosystem)

Fixed versions

2.13.4

Fix

  • Fixed version 2.13.4
    pip install --upgrade scrapy==2.13.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences