{"id":"CVE-2026-105782","published":"2026-10-05T23:08:55Z","modified":"2026-10-06T13:44:10Z","title":"Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware","vendor":"scrapy","product":"scrapy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0068,"percentile":0.47576,"provenance":"source"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"references":[{"url":"https://github.com/scrapy/scrapy/security/advisories/GHSA-cwxj-rr6w-m6w7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/scrapy/scrapy/commit/945b787a263586cb5803c01c6da57daad8997ae5","tags":["x_refsource_MISC"]},{"url":"https://github.com/scrapy/scrapy/commit/b6e5c58ae707a3d4bb491537b5519534050047e0","tags":["x_refsource_MISC"]},{"url":"https://github.com/scrapy/scrapy/releases/tag/2.14.2","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":9.52},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"scrapy","affectedVersions":[{"vendor":"scrapy","product":"scrapy","versions":[">= 1.4.0, < 2.14.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-06T13:40:40.903121Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Scrapy","vulnerableRanges":[">=1.4.0, <2.14.2"],"patched":["2.14.2"],"from":["GHSA-cwxj-rr6w-m6w7","PYSEC-2026-4299"],"provenance":"source"}],"summary":{"text":"Scrapy's RefererMiddleware, in its scrapy/spidermiddlewares/referer.py component, treats a Referrer-Policy response-header value that resembles a Python import path as a policy class, importing and calling the referenced object in versions from 1.4.0 up to 2.14.2 (fixed in 2.14.2). An attacker needs only to host a malicious website that a crawler fetches over the network, with no authentication or user interaction required, to supply a callable such as sys.exit and terminate the crawler processing that response.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:14Z"},"euvd":{"id":"EUVD-2026-92869","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-41125","published":"2021-10-06","fixed":"2.5.1","kev":false},{"cve":"CVE-2024-1968","published":"2024-05-20","fixed":"2.11.2","kev":false},{"cve":"CVE-2025-6176","published":"2025-10-31","fixed":"2.13.4","kev":false,"link":{"from":"CVE-2025-6176","to":"CVE-2026-105782","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Scrapy","fromFixed":"2.13.4","toFixed":"2.14.2","daysApart":339}]}},{"cve":"CVE-2026-105782","published":"2026-10-05","fixed":"2.14.2","kev":false}],"package":"PyPI:Scrapy"}}