---
id: CVE-2026-105782
title: Scrapy is a high-level web crawling and scraping framework for Python
summary: >-
  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 …
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-470
vendor: scrapy
product: scrapy
affected:
  - 'scrapy >= 1.4.0, < 2.14.2'
patched:
  - Scrapy 2.14.2
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T00:16:33.613'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-105782'
references:
  - url: >-
      https://github.com/scrapy/scrapy/commit/945b787a263586cb5803c01c6da57daad8997ae5
    label: security-advisories@github.com
  - url: >-
      https://github.com/scrapy/scrapy/commit/b6e5c58ae707a3d4bb491537b5519534050047e0
    label: security-advisories@github.com
  - url: 'https://github.com/scrapy/scrapy/releases/tag/2.14.2'
    label: security-advisories@github.com
  - url: 'https://github.com/scrapy/scrapy/security/advisories/GHSA-cwxj-rr6w-m6w7'
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-cwxj-rr6w-m6w7'
tags:
  - nvd
  - cve.org
  - ghsa
  - pip
aliases:
  - GHSA-cwxj-rr6w-m6w7
ecosystem: pip
ingestedAt: '2026-10-05T23:36:21.169Z'
---

## Overview

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

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-105782)

Affected packages:

- `Scrapy >= 1.4.0, <= 2.14.1`

Patched in:

- `Scrapy 2.14.2`

Source: https://github.com/advisories/GHSA-cwxj-rr6w-m6w7
