CVE-2026-105782

published 5 Oct 2026 · updated 6 Oct 2026

Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware

7.5HighCVSS 7.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
scrapy>=1.4.0 <2.14.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-105782 severity on Zeptric[![CVE-2026-105782](https://zeptric.io/badge/cve/CVE-2026-105782.svg)](https://zeptric.io/cve/CVE-2026-105782)