CVE-2026-105782
published high CVSS 3.1 · 7.5Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| scrapy | — | scrapy>= 1.4.0, < 2.14.2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| scrapy | scrapy | >= 1.4.0, < 2.14.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-470 CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
References
4Provider assertions
2GitHub_M · cna
Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 908f1dea351c9efb29938c17ea74b856081f4ea23f7b8ef022ed69f41adce990
- Ingested
- 06 Oct 2026, 13:54:01 UTC
- Source record
- Official CVE record