XML External Entity (XXE) Vulnerability in scrapy/scrapy
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| scrapy | scrapy/scrapy | before 2.11.1 | 2.11.1 | Patch available | CNA |
| — | scrapy (PyPI) | 2.0.0 to before 2.11.1 | 2.11.1 | Patch available | GHSA-7j7m-v7m3-jqm7 |
| — | scrapy (PyPI) | before 1.8.4 | 1.8.4 | Patch available | GHSA-7j7m-v7m3-jqm7 |
- scrapy/scrapy Vendorscrapy Affected before 2.11.1 Fixed in 2.11.1 Patch available CNA
- scrapy (PyPI) Vendor— Affected 2.0.0 to before 2.11.1 Fixed in 2.11.1 Patch available GHSA-7j7m-v7m3-jqm7
- scrapy (PyPI) Vendor— Affected before 1.8.4 Fixed in 1.8.4 Patch available GHSA-7j7m-v7m3-jqm7
Remediation
- Fix · CNA scrapy/scrapy (scrapy) Fixed in 2.11.1
- Fix · GHSA-7j7m-v7m3-jqm7 scrapy (PyPI) Fixed in 2.11.1 Advisory →
- Fix · GHSA-7j7m-v7m3-jqm7 scrapy (PyPI) Fixed in 1.8.4 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
scrapy/scrapy 2.11.1
2 records Highest priority Priority HIGH 2 HIGH
Other records, highest priority first
- TI-2024-03333 Authorization Header Leak During Cross-Domain Redirect in scrapy/scrapyPriority HIGH 72
Timeline
- 2026-10-02 Threatist record created from CVE-2024-3572
- 2026-10-03 Alias added: GHSA-7j7m-v7m3-jqm7
References
More Scrapy vulnerabilities
- TI-2024-03333 Authorization Header Leak During Cross-Domain Redirect in scrapy/scrapy CVSS 3.0HIGH 7.5
- TI-2024-01831 Authorization Header Leakage in scrapy/scrapy on Scheme Change Redirects CVSS 3.0HIGH 7.5
- TI-2017-10313 Scrapy 1.4 allows remote attackers to cause a denial of service (memory consumption) via… CVSS 3.0HIGH 7.5
- TI-2024-01761 ReDoS Vulnerability in scrapy/scrapy's XMLFeedSpider CVSS 3.1MEDIUM 6.5
- TI-2022-00495 Exposure of Sensitive Information to an Unauthorized Actor in scrapy/scrapy CVSS 3.1MEDIUM 6.5
- TI-2021-17964 HTTP authentication credential leak to target websites in scrapy CVSS 3.1MEDIUM 6.5
Sources
- CVE-2024-3572 · CVE Program
- CVE-2024-3572 · NVD
- FIRST EPSS
- GHSA-7j7m-v7m3-jqm7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences