{"id":"CVE-2026-105782","summary":"Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware","details":"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.","aliases":["GHSA-cwxj-rr6w-m6w7"],"modified":"2026-10-06T10:45:52.685617915Z","published":"2026-10-05T23:08:55.749Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-470"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/105xxx/CVE-2026-105782.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/105xxx/CVE-2026-105782.json"},{"type":"FIX","url":"https://github.com/scrapy/scrapy/commit/945b787a263586cb5803c01c6da57daad8997ae5"},{"type":"FIX","url":"https://github.com/scrapy/scrapy/commit/b6e5c58ae707a3d4bb491537b5519534050047e0"},{"type":"WEB","url":"https://github.com/scrapy/scrapy/releases/tag/2.14.2"},{"type":"ADVISORY","url":"https://github.com/scrapy/scrapy/security/advisories/GHSA-cwxj-rr6w-m6w7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105782"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/scrapy/scrapy","events":[{"introduced":"5f69ec98f70e1e1e5f65fb36eb1cfb23d0be5b45"},{"fixed":"498b4fc1a431c71ea699b2d7e0bd518c7ceca302"}],"database_specific":{"extracted_events":[{"introduced":"1.4.0"},{"fixed":"2.14.2"}],"source":"AFFECTED_FIELD"}}],"versions":["2.14.1","2.14.0","2.13.0","2.12.0","2.11.0","2.10.0","2.9.0","2.8.0","2.7.1","2.7.0","2.6.1","2.6.0","1.8.0","2.5.0","2.4.0","2.3.0","2.2.0","2.1.0","2.0.0","1.7.0","1.6.0","1.5.0","1.4.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-105782.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}