CVE-2026-105782
HighCVSS 7.5Summary
Scrapy is a high-level web crawling and scraping framework for Python. From 1.4.0 until 2.14.2, RefererMiddleware in scrapy/spidermiddlewares/referer.py treated a Referrer-Policy response-header value that resembled a Python import path as a referrer policy class, imported the referenced object, and called it. A malicious website could supply a callable such as sys.exit and terminate a crawler processing the response. This issue is fixed in version 2.14.2.
Risk Assessment
A malicious website can cause the crawler to terminate, potentially disrupting scraping processes and causing downtime for services relying on Scrapy.
Recommendation
Immediately upgrade Scrapy to version 2.14.2 or later, which includes the fix. Also consider validating Referrer-Policy headers in responses.
Other vulnerabilities in Scrapy
See all- CVE-2017-14158High
Scrapy version 1.4 allows remote attackers to cause a denial of service (memory consumption) by sending large files, as an arbitrary number of files are read into memory. This issue is exacerbated when files are then written in a separate thread to a slow storage resource.
- CVE-2026-84366High
Scrapy is a high-level web crawling and scraping framework for Python. Prior to 2.17.0, in scrapy/core/downloader/handlers/s3.py, Scrapy's S3DownloadHandler converts an S3-scheme bucket and key request into a plaintext HTTP request to the corresponding S3 endpoint unless request.meta["is_secure"] is explicitly enabled, then signs and sends the plaintext request with configured AWS credentials. A network attacker who can observe traffic between Scrapy and S3 can read the bucket and key path, AWS Authorization header, X-Amz-Security-Token when temporary credentials are used, S3 object contents, and S3 response headers. An active man-in-the-middle attacker can also modify the plaintext S3 response body, status code, and headers before Scrapy processes them, causing scraped-data poisoning, poisoned exports, HTTP cache poisoning when caching is enabled, or influence over later crawl targets through forged redirects or attacker-controlled links.
Original NVD description (English source)
Scrapy is a high-level web crawling and scraping framework for Python. From 1.4.0 until 2.14.2, RefererMiddleware in scrapy/spidermiddlewares/referer.py treated a Referrer-Policy response-header value that resembled a Python import path as a referrer policy class, imported the referenced object, and called it. A malicious website could supply a callable such as sys.exit and terminate a crawler processing the response. This issue is fixed in version 2.14.2.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

