PYSEC-2026-2401

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/brotli/PYSEC-2026-2401.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-2401
Aliases
Published
2026-07-13T14:36:34.173732Z
Modified
2026-07-13T16:43:00.989110436Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

References

Affected packages

PyPI / brotli

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.0

Affected versions

0.*
0.5.2
0.6.0
1.*
1.0.1
1.0.4
1.0.6
1.0.7
1.0.8
1.0.9
1.1.0

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/brotli/PYSEC-2026-2401.yaml"