Live threats

All CVEs / Scrapy

CVE-2024-1892Scrapy

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
0.8%
probability of exploitation in 30 days · percentile 52
Auth required
No
Published
Feb 28, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Scrapy.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI scrapy ≥ 2 < 2.11.1 2.11.1 pip install "scrapy>=2.11.1"
PyPI scrapy < 1.8.4 1.8.4 pip install "scrapy>=1.8.4"
PyPI scrapy < 2.11.1 2.11.1 pip install "scrapy>=2.11.1"

Per OSV / GitHub Advisories (GHSA-cc65-xxvf-f7r9, PYSEC-2024-162). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
scrapyscrapy< 2.11.1

Official sources

References

Links published by the sources. Open them with care.