{"id":"CVE-2026-105782","state":"PUBLISHED","title":"Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware","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.","publishedAt":"2026-10-05T23:08:55.749Z","updatedAt":"2026-10-06T13:44:10.445Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["scrapy scrapy"],"affected":[{"vendor":"scrapy","product":"scrapy","versions":[{"version":">= 1.4.0, < 2.14.2","status":"affected"}]}],"references":["https://github.com/scrapy/scrapy/security/advisories/GHSA-cwxj-rr6w-m6w7","https://github.com/scrapy/scrapy/commit/945b787a263586cb5803c01c6da57daad8997ae5","https://github.com/scrapy/scrapy/commit/b6e5c58ae707a3d4bb491537b5519534050047e0","https://github.com/scrapy/scrapy/releases/tag/2.14.2"],"weaknesses":["CWE-470"],"ingestedAt":"2026-10-29T20:10:23.711Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/105xxx/CVE-2026-105782.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-105782","state":"PUBLISHED","datePublished":"2026-10-05T23:08:55.749Z","dateUpdated":"2026-10-06T13:44:10.445Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-05T20:37:19.362Z"},"containers":{"cna":{"title":"Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"scrapy","product":"scrapy","versions":[{"version":">= 1.4.0, < 2.14.2","status":"affected"}]}],"references":[{"url":"https://github.com/scrapy/scrapy/security/advisories/GHSA-cwxj-rr6w-m6w7","name":"https://github.com/scrapy/scrapy/security/advisories/GHSA-cwxj-rr6w-m6w7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/scrapy/scrapy/commit/945b787a263586cb5803c01c6da57daad8997ae5","name":"https://github.com/scrapy/scrapy/commit/945b787a263586cb5803c01c6da57daad8997ae5","tags":["x_refsource_MISC"]},{"url":"https://github.com/scrapy/scrapy/commit/b6e5c58ae707a3d4bb491537b5519534050047e0","name":"https://github.com/scrapy/scrapy/commit/b6e5c58ae707a3d4bb491537b5519534050047e0","tags":["x_refsource_MISC"]},{"url":"https://github.com/scrapy/scrapy/releases/tag/2.14.2","name":"https://github.com/scrapy/scrapy/releases/tag/2.14.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-470","lang":"en","description":"CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-05T23:08:55.749Z"},"source":{"advisory":"GHSA-cwxj-rr6w-m6w7","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-06T13:40:40.903121Z","id":"CVE-2026-105782","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-06T13:44:10.445Z"}}]}}}