{"id":"UBUNTU-CVE-2026-105782","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.","modified":"2026-10-08T12:53:38.787362098Z","published":"2026-10-06T00:16:00Z","upstream":["CVE-2026-105782"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-105782"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-105782"},{"type":"REPORT","url":"https://github.com/scrapy/scrapy/security/advisories/GHSA-cwxj-rr6w-m6w7"},{"type":"REPORT","url":"https://github.com/scrapy/scrapy/commit/945b787a263586cb5803c01c6da57daad8997ae5"},{"type":"REPORT","url":"https://github.com/scrapy/scrapy/commit/b6e5c58ae707a3d4bb491537b5519534050047e0"},{"type":"REPORT","url":"https://github.com/scrapy/scrapy/releases/tag/2.14.2"}],"affected":[{"package":{"name":"python-scrapy","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/python-scrapy?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.0-1","1.0.3-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.3-1","binary_name":"python-scrapy"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105782.json"}},{"package":{"name":"python-scrapy","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/python-scrapy?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.0-1~exp2","1.4.0-1","1.5.0-1","1.5.0-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-scrapy","binary_version":"1.5.0-1ubuntu0.1~esm1"},{"binary_name":"python3-scrapy","binary_version":"1.5.0-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105782.json"}},{"package":{"name":"python-scrapy","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/python-scrapy?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.3-1","1.7.3-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.3-1ubuntu0.1~esm1","binary_name":"python3-scrapy"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105782.json"}},{"package":{"name":"python-scrapy","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/python-scrapy?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.1-2","2.5.1-2","2.5.1-2ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-scrapy","binary_version":"2.5.1-2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105782.json"}},{"package":{"name":"python-scrapy","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/python-scrapy?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.10.0-1","2.11.0-1","2.11.0-2","2.11.1-1","2.11.1-1ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-scrapy","binary_version":"2.11.1-1ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105782.json"}},{"package":{"name":"python-scrapy","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/python-scrapy?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.12.0-2","2.14.0-1","2.14.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.14.1-1","binary_name":"python3-scrapy"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-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"},{"type":"Ubuntu","score":"medium"}]}