GHSA-23j4-mw76-5v7h: Scrapy allows redirect following in protocols other than HTTP
6.5
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
5/14/2024
Updated
5/14/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
Scrapy | pip | < 2.11.2 | 2.11.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from redirect handling logic in two middleware classes. The commit diff shows both were modified to add scheme validation checks ({'http', 'https'}). Prior to the patch:
- RedirectMiddleware blindly followed Location headers without scheme validation
- MetaRefreshMiddleware processed refresh tags without scheme checks These functions directly handled redirect resolution and were missing protocol restrictions, making them the root cause of the vulnerability. The high confidence comes from the direct correlation between the vulnerability description and the patched code locations.