Skip to content
DoS Disclosed report Intermediate CVE-2025-6176

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

Scrapy's protection against decompression bombs does not cover brotli, so a malicious server can send highly compressed zero-filled data that expands to a huge size and exhausts client memory. This can crash clients with less than 80GB of available memory.

google/brotli

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-2qfp-q593-8484, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the decompression-bomb size limit in Scrapy was not applied to brotli-compressed responses, and the brotli library itself lacked a safeguard until version 1.2.0.

Impact

A remote server could crash a Scrapy client that has less than 80GB of memory by sending a brotli-compressed response that expands enormously.

What the attacker needed

Scrapy version up to 2.13.3; client memory under 80GB; malicious or compromised server

The fix

The issue should be fixed by upgrading to brotli v1.2.0, which adds the necessary security enhancement.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a web page is compressed to save bandwidth, the browser or tool decompresses it. A decompression bomb is a tiny compressed file that expands into a huge amount of data, using up all memory. Here, Scrapy checks for this with some compression formats but not brotli, so a malicious server can crash the program.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.