CVE-2026-105782
HIGH 7.5CVSS 3.1Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware
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.
- Published
- 6 Oct 2026
- Last modified
- 15 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-470
- Also known as
- GHSA-cwxj-rr6w-m6w7PYSEC-2026-4299
- Sources
- NVDJSONOSV GHSA-cwxj-rr6w-m6w7JSONOSV PYSEC-2026-4299JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | scrapy | >= 1.4.0, < 2.14.2 | 2.14.2 |
References
- https://github.com/scrapy/scrapy/commit/945b787a263586cb5803c01c6da57daad8997ae5 · WEB
- https://github.com/scrapy/scrapy/commit/b6e5c58ae707a3d4bb491537b5519534050047e0
- https://github.com/scrapy/scrapy/releases/tag/2.14.2
- https://github.com/scrapy/scrapy/security/advisories/GHSA-cwxj-rr6w-m6w7 · WEB
- https://github.com/scrapy/scrapy · PACKAGE
- https://pypi.org/project/scrapy · PACKAGE
- https://github.com/advisories/GHSA-cwxj-rr6w-m6w7 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-105782 · ADVISORY
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 6 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Mar 2026)