CVE-2026-105782

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductScrapy
PublishedOct 6, 2026
First seenOct 6, 2026
Weakness typeCWE-470CWE-470

How to fix

Update
  • scrapy2.14.2 or later

Affected products

ProductAffected versionsFixed in
scrapyPyPI1.4.0 ≤ v < 2.14.22.14.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.