Skip to content
OpenAdvisories
High · 7.5 CVE-2024-3572 EUVD-2024-0557GHSA-7j7m-v7m3-jqm7PYSEC-2026-1907

XML External Entity (XXE) Vulnerability in scrapy/scrapy

Published Apr 16, 2024 · Updated Aug 1, 2024 · 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.

Affected products

VendorProductAffectedFixed
scrapy scrapy/scrapy unspecified – < 2.11.1 2.11.1

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.

ReleasePackageFixed inAdvisory
Debian 14 python-scrapy 2.11.1-1 —
Debian 13 python-scrapy 2.11.1-1 —
Debian 12 python-scrapy No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS python-scrapy No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
PyPI scrapy >= 2.0.0, < 2.11.1 2.11.1 GHSA-7j7m-v7m3-jqm7
PyPI scrapy < 1.8.4 1.8.4 GHSA-7j7m-v7m3-jqm7
PyPI scrapy < 1.8.4 · >= 2.0.0, < 2.11.1 1.8.4, 2.11.1 PYSEC-2026-1907

Advisories 1

References