Vulnerability DatabaseGHSA-jm3v-qxmh-hxwv

GHSA-jm3v-qxmh-hxwv
Python vulnerability analysis and mitigation

Overview

GHSA-jm3v-qxmh-hxwv affects Scrapy versions prior to 2.11.2, where the software fails to properly handle scheme-specific proxy settings during redirects. This moderate severity vulnerability was discovered and reported by @redapple, and was officially published on May 14, 2024 (GitHub Advisory).

Technical details

The vulnerability has a CVSS v3.1 score of 4.3 (Moderate), with base metrics indicating network attack vector, low attack complexity, low privileges required, and no user interaction needed. The vulnerability specifically occurs when Scrapy processes redirects between HTTP and HTTPS schemes, where it fails to switch to the appropriate proxy configuration for the new scheme. The technical specification is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N (GitHub Advisory).

Impact

When a request is redirected between HTTP and HTTPS URLs, the software continues using the proxy configuration of the original scheme instead of switching to the appropriate proxy for the new scheme. This becomes a security concern when different proxy configurations are used for HTTP and HTTPS for security purposes, as it could potentially expose traffic to unintended proxy providers (GitHub Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade to Scrapy version 2.11.2 which contains the fix. As a workaround, users can replace the built-in retry middlewares (RedirectMiddleware and MetaRefreshMiddleware) and the HttpProxyMiddleware middleware with custom implementations that incorporate the fix from Scrapy 2.11.2. It's crucial to verify that the custom implementations work as intended (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management