Skip to main content

Scrapy allows redirect following in protocols other than HTTP

0
Medium
Published: 08/13/2026 (08/13/2026, 17:34:19 UTC)
Source: GCVE Database
Product: scrapy

Description

Scrapy versions from 2.9.0 up to but not including 2.11.2 improperly followed redirects for URL schemes beyond HTTP and HTTPS, such as file://, ftp://, and s3://. This behavior could allow an attacker with the ability to control start requests and read spider output to access local files or sensitive credentials via redirected URLs. The vulnerability is fixed in Scrapy 2.11.2.

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected software

Homebrewmore threats →ghsa
scrapy
pkg:brew/scrapy
Affected versions
>=2.9.0 <2.11.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/18/2026, 01:50:17 UTC

Technical Analysis

Scrapy versions >=2.9.0 and <2.11.2 allowed redirect following for protocols other than HTTP and HTTPS, including data://, file://, ftp://, and s3://, due to the way the RedirectMiddleware and MetaRefreshMiddleware handled redirects. This could be exploited by an attacker with write access to start requests and read access to spider output to redirect to local files (file://), malicious FTP servers (ftp://), or S3 buckets (s3://) to access sensitive data or credentials configured in the spider or project. The extent of data exposure depends on how the spider processes response data. The issue is resolved by upgrading to Scrapy 2.11.2 or implementing custom middleware that enforces proper redirect scheme restrictions.

Potential Impact

An attacker with the ability to define start URLs and read spider output can exploit this vulnerability to access local files, FTP credentials, or S3 data by redirecting to non-HTTP(S) schemes. This can lead to unauthorized disclosure of sensitive information configured in the spider or project. The impact severity is medium with a CVSS score of 6.5, reflecting high confidentiality impact but no integrity or availability impact.

Mitigation Recommendations

Upgrade Scrapy to version 2.11.2 or later, where this redirect handling issue is fixed. Alternatively, replace the built-in RedirectMiddleware and MetaRefreshMiddleware with custom implementations that restrict redirects to HTTP and HTTPS schemes as per the fix in 2.11.2. Verify that custom middleware correctly enforces these restrictions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-scrapy-GHSA-23j4-mw76-5v7h
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6aac8e5655bf5e2cf5491817

Added to database: 09/18/2026, 01:05:26 UTC

Last enriched: 09/18/2026, 01:50:17 UTC

Last updated: 09/18/2026, 02:07:33 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses