← Back to search

CVE-2026-105782

7.5 HIGHpublic exploit available

Published 2026-10-06 · Updated 2026-10-06

AI risk analysis

Summary
Scrapy's RefererMiddleware incorrectly interpreted Referrer-Policy header values as Python import paths and attempted to import and execute them as referrer policy classes. This allowed remote attackers to inject arbitrary Python code that could terminate crawlers by calling functions like sys.exit.
Exploitability
Exploitation requires a malicious website to serve a response with a specially crafted Referrer-Policy header, making it moderately difficult to exploit without direct control over a web server but possible through phishing or compromised sites.
Blast radius
The impact is limited to crawler processes that encounter the malicious response, potentially causing crawlers to terminate unexpectedly and halting data collection workflows, but does not directly affect end-user applications or systems.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to Scrapy version 2.14.2 or later to fix the referer middleware vulnerability.
webcrawlerpython

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CWE-470

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.