What’s Vulnerable › Vulnerabilities
CVE-2024-3572: XML External Entity (XXE) Vulnerability in scrapy/scrapy
- Severity: high (CVSS 7.5 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-04-16 · updated 2026-06-17
- Weakness: CWE-409
Description
The scrapy/scrapy project is vulnerable to XML External Entity (XXE) attacks due to the use of lxml.etree.fromstring for parsing untrusted XML data without proper validation. This vulnerability allows attackers to perform denial of service attacks, access local files, generate network connections, or circumvent firewalls by submitting specially crafted XML data.
Affected products
- scrapy/scrapy: before 2.11.1 — fixed in 2.11.1
How to fix
Upgrade to a fixed version: scrapy/scrapy 2.11.1. Check the vendor advisory for mitigations.
References
- https://github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f
- https://huntr.com/bounties/c4a0fac9-0c5a-4718-9ee4-2d06d58adabb
- https://github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f
- https://huntr.com/bounties/c4a0fac9-0c5a-4718-9ee4-2d06d58adabb
Get alerted when CVE-2024-3572 or the next vulnerability affects your stack