Disclosure summary
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.
Source-reported weakness categories
CWE-470
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
NIST National Vulnerability Database · NVD-CVE-2026-105782
Open original source · Updated Oct 06, 2026
Only CPE matches marked vulnerable=true are indexed. AND/OR platform conditions must be checked in the original NVD record.
GitHub Reviewed Security Advisories · GHSA-cwxj-rr6w-m6w7
Open original source · Updated Oct 05, 2026
Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware
Source severity: HIGH / 0
| Ecosystem | Package | Affected range | First patched |
|---|---|---|---|
| pip | Scrapy | >= 1.4.0, | 2.14.2 |
Original records & references
PUBLISHED 2026-10-05T20:16:33-04:00
MODIFIED 2026-10-06T10:17:39-04:00
INGESTED 2026-10-06T11:45:40-04:00