What’s Vulnerable › Vulnerabilities
CVE-2026-105782: Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-06 · updated 2026-10-06
- Weakness: CWE-470
Description
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.
Affected products
- scrapy/scrapy: from 1.4.0, < 2.14.2
References
- https://github.com/scrapy/scrapy/commit/945b787a263586cb5803c01c6da57daad8997ae5
- https://github.com/scrapy/scrapy/commit/b6e5c58ae707a3d4bb491537b5519534050047e0
- https://github.com/scrapy/scrapy/releases/tag/2.14.2
- https://github.com/scrapy/scrapy/security/advisories/GHSA-cwxj-rr6w-m6w7
Get alerted when CVE-2026-105782 or the next vulnerability affects your stack