Scrapy allows redirect following in protocols other than HTTP
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.
AI Analysis
Technical Summary
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.
Scrapy allows redirect following in protocols other than HTTP
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
Affected software
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.