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

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 58% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-16T16:07:13.000Z
- Modified: 2026-07-07T17:57:02.337Z
- Also known as: GHSA-7j7m-v7m3-jqm7, PYSEC-2026-1907
- Weaknesses: CWE-409
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- scrapy scrapy/scrapy: from unspecified before 2.11.1
- scrapy scrapy: before 2.11.1
- scrapy (PyPI): from 2.0.0 before 2.11.1; before 1.8.4

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://huntr.com/bounties/c4a0fac9-0c5a-4718-9ee4-2d06d58adabb> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f> (patch, web)
- <https://github.com/scrapy/scrapy/security/advisories/GHSA-7j7m-v7m3-jqm7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-3572> (advisory)
- <https://github.com/scrapy/scrapy/commit/71b8741e3607cfda2833c7624d4ada87071aa8e5> (web)
- <https://docs.scrapy.org/en/latest/news.html#scrapy-2-11-1-2024-02-14> (web)
- <https://github.com/scrapy/scrapy> (package)
- <https://pypi.org/project/scrapy> (package)
- <https://github.com/advisories/GHSA-7j7m-v7m3-jqm7> (advisory)

## Sources

- CVE List: [CVE-2024-3572](https://www.cve.org/CVERecord?id=CVE-2024-3572), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-7j7m-v7m3-jqm7](https://github.com/advisories/GHSA-7j7m-v7m3-jqm7), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-3572](https://nvd.nist.gov/vuln/detail/CVE-2024-3572), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1907](https://osv.dev/vulnerability/PYSEC-2026-1907), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-3572 · Whole record: https://cve.day/CVE-2024-3572.json · Rebuilt by cve.day 2026-11-25T22:58:39.241Z
