CVE-2026-105782

Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware

Published Oct 5, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-cwxj-rr6w-m6w7 Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Scrapy
Scrapy scrapy
Vendors & Products Scrapy
Scrapy scrapy
Type Values Removed Values Added
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.
Title Scrapy: Arbitrary Module Import via Referrer-Policy Header in RefererMiddleware
Weaknesses CWE-470
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 6, 2026, 1:44 PM
Reserved
Oct 5, 2026, 8:37 PM
Status
Awaiting Analysis
Published
Oct 6, 2026, 12:16 AM
Modified
Oct 6, 2026, 4:00 PM
Severity
Important
Public date
Oct 5, 2026, 11:08 PM