# CVE-2024-1892: Scrapy vulnerable to ReDoS via XMLFeedSpider

Source: https://junglewise.ai/threats/cve-2024-1892-scrapy-vulnerable-to-redos-via-xmlfeedspider  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-02-28  
License: CC BY 4.0 with a link back

CVE-2024-1892 · Severity: low · CVSS 3.1 · Published 2024-02-28

A Regular Expression Denial of Service (ReDoS) vulnerability exists in the XMLFeedSpider class of the scrapy/scrapy project, specifically in the parsing of XML content. By crafting malicious XML content that exploits inefficient regular expression complexity used in the parsing process, an attacker can cause a denial-of-service (DoS) condition. This vulnerability allows for the system to hang and consume significant resources, potentially rendering services that utilize Scrapy for XML processing unresponsive.

Technologies: [scrapy (PyPI)](https://junglewise.ai/threats/technologies/scrapy). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-1892 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-1892 being exploited in the wild.

**How severe is CVE-2024-1892?** Low severity, with a CVSS score of 3.1, published 28 February 2024.

**Which products and versions are affected?** scrapy (PyPI) ECOSYSTEM:introduced=2,fixed=2.11.1, GIT:introduced=0,fixed=479619b340f197a8f24c5db45bc068fb8755f2c5,fixed=479619b340f197a8f24c5db45bc068fb8755f2c5|ECOSYSTEM:introduced=0,fixed=2.11.1.

**Is there a fix for CVE-2024-1892?** Yes. scrapy (PyPI): upgrade to 2.11.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-1892?** Check whether you run scrapy (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- scrapy (PyPI): upgrade to 2.11.1 or later

  ```sh
  pip install "scrapy>=2.11.1"
  ```


## Affected products

- scrapy (PyPI) ECOSYSTEM:introduced=2,fixed=2.11.1, GIT:introduced=0,fixed=479619b340f197a8f24c5db45bc068fb8755f2c5,fixed=479619b340f197a8f24c5db45bc068fb8755f2c5|ECOSYSTEM:introduced=0,fixed=2.11.1

## Identifiers

- CVE-2024-1892
- GHSA-cc65-xxvf-f7r9
- PYSEC-2024-162

## Related threats

- [Scrapy arbitrary code execution via Referrer-Policy header](https://junglewise.ai/threats/cve-2026-105782-scrapy-arbitrary-module-import-via-referrer-policy-header-in)
- [Scrapy S3DownloadHandler cleartext transmission of AWS credentials](https://junglewise.ai/threats/cve-2026-84366-scrapy-s3downloadhandler-cleartext-transmission-of-aws)
- [PYSEC-2026-2401 - Scrapy is vulnerable to a denial of service (DoS) attack due to flaws in brotli decompression implementation](https://junglewise.ai/threats/cve-2025-6176-scrapy-denial-of-service-via-brotli-decompression-bomb)
- [PYSEC-2026-1907 - Scrapy decompression bomb vulnerability](https://junglewise.ai/threats/cve-2024-3572-scrapy-decompression-bomb-vulnerability)
- [PYSEC-2026-1908 - Scrapy authorization header leakage on cross-domain redirect](https://junglewise.ai/threats/cve-2024-3574-scrapy-authorization-header-leakage-on-cross-domain-redirect)
