Arbitrary module import via Referrer-Policy header in Scrapy
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
Scrapy from 1.4.0 before 2.14.2 contains an unsafe reflection flaw (CWE-470) in RefererMiddleware. The middleware treats a Referrer-Policy response header value that resembles a Python import path as a policy class, imports the named object and calls it. A malicious website can supply a callable such as sys.exit without authentication and terminate a crawler that processes its response.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade Scrapy to version 2.14.2, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA scrapy (scrapy) Fixed in 2.14.2
Vendor assessments
Timeline
- 2026-10-06 Threatist record created from CVE-2026-105782
- 2026-10-06 Affected versions changed · Red Hat
- 2026-10-06 CVSS score added · Red Hat
- 2026-10-06 CISA SSVC decision points changed
- 2026-10-06 Priority changed: MEDIUM → LOW
References
More scrapy vulnerabilities
- TI-2025-05586 Brotli decompression bomb DoS in scrapy/scrapy CVSS 3.0HIGH 7.5
- TI-2024-03333 Authorization Header Leak During Cross-Domain Redirect in scrapy/scrapy CVSS 3.0HIGH 7.5
- TI-2024-03331 XML External Entity (XXE) Vulnerability in scrapy/scrapy CVSS 3.0HIGH 7.5
- TI-2024-01831 Authorization Header Leakage in scrapy/scrapy on Scheme Change Redirects CVSS 3.0HIGH 7.5
- TI-2026-40066 Protego: Exponential backtracking ReDoS in robots.txt URL wildcard matching CVSS 4.0HIGH 7.1
- TI-2017-10313 Scrapy 1.4 allows remote attackers to cause a denial of service (memory consumption) via… CVSS 3.0HIGH 7.5
Sources
- CVE-2026-105782 · CVE Program
- CVE-2026-105782 · NVD
- FIRST EPSS
- CVE-2026-105782 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences