Skip to main content
← All vulnerabilities
CVE-2026-105782GHSA-CWXJ-RR6W-M6W7PYSEC-2026-4299

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.14.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • scrapy scrapy

    From 1.4.0 · fixed in 2.14.2

  • scrapyPyPI

    From 1.4.0 · fixed in 2.14.2

References 4

GitHub · scrapy/scrapy