Description
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the XMLFeedSpider class of the scrapy/scrapy project, specifically in the parsing of XML content. By crafting malicious XML content that exploits inefficient regular expression complexity used in the parsing process, an attacker can cause a denial-of-service (DoS) condition. This vulnerability allows for the system to hang and consume significant resources, potentially rendering services that utilize Scrapy for XML processing unresponsive.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| scrapy | scrapy/scrapy | unspecified – < 2.11 | 2.11 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-scrapy | 2.11.1-1 | — |
| Debian 13 | python-scrapy | 2.11.1-1 | — |
| Debian 12 | python-scrapy | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | python-scrapy | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | python-scrapy | 2.11.1-1ubuntu0.1~esm2 | USN-7476-1 |
| Ubuntu Pro 22.04 LTS | python-scrapy | 2.5.1-2ubuntu0.1~esm1 | USN-7476-1 |
| Ubuntu Pro 20.04 LTS | python-scrapy | 1.7.3-1ubuntu0.1~esm1 | USN-7476-1 |
| Ubuntu Pro 18.04 LTS | python-scrapy | 1.5.0-1ubuntu0.1~esm1 | USN-7476-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | scrapy | >= 2, < 2.11.1 | 2.11.1 | GHSA-cc65-xxvf-f7r9 |
| PyPI | scrapy | < 1.8.4 | 1.8.4 | GHSA-cc65-xxvf-f7r9 |
| PyPI | scrapy | < 2.11.1 | 2.11.1 | PYSEC-2024-162 |
Advisories 1
- USN-7476-1 python-scrapy vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026