Advisory record · GHSA-cwxj-rr6w-m6w7

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

CVSS 7.5 HighEPSS 0.0038 · 32nd percentile

Published by the GitHub Advisory Database at 13 Mar 2026, 20:02 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
scrapyPyPI>=1.4.0, <2.14.22.14.2
Identifiers
GHSA-cwxj-rr6w-m6w7 · CVE-2026-105782 · PYSEC-2026-4299
Weakness (CWE)
CWE-470
Published
13 Mar 2026
Updated
15 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Scrapy versions 1.4.0 up to 2.14.2 (not including 2.14.2) are vulnerable. A malicious website can send a Referrer-Policy header containing a Python import path, such as sys.exit, which causes Scrapy to import and call that object and may terminate the process. Upgrade to Scrapy 2.14.2 or later. If you cannot upgrade, disable the Referer middleware with REFERER_ENABLED set to False, or set the referrer_policy request meta key on requests.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0038, the 32nd percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:08 UTC First seen by agentprime
  2. 31 Oct 2026, 14:08 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.