CVE-2026-105782
Scrapy is a high-level web crawling and scraping framework for …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/scrapy/scrapy/commit/945b787a263586cb5803c01c6da57daad8997ae5
- github.com/scrapy/scrapy/commit/b6e5c58ae707a3d4bb491537b5519534050047e0
- github.com/scrapy/scrapy/releases/tag/2.14.2
- github.com/scrapy/scrapy/security/advisories/GHSA-cwxj-rr6w-m6w7
- github.com/advisories/GHSA-cwxj-rr6w-m6w7
- nvd.nist.gov/vuln/detail/CVE-2026-105782
- cve.org/CVERecord?id=CVE-2026-105782
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.