REDHAT-BUG-2209469: Medium severity pypi/requests vulnerability
Versions of Requests between v2.3.0 and v2.30.0 are vulnerable to potential forwarding of Proxy-Authorization headers to destination servers when following HTTPS redirects.
When proxies are defined with user info (https://user:pass@proxy:8080), Requests will construct a Proxy-Authorization header that is attached to the request to authenticate with the proxy.
In cases where Requests receives a redirect response, it previously reattached the Proxy-Authorization header incorrectly, resulting in the value being sent through the tunneled connection to the destination server. Users who rely on defining their proxy credentials in the URL are strongly encouraged to upgrade to Requests 2.31.0+ to prevent unintentional leakage and rotate their proxy credentials once the change has been fully deployed.
Users who do not use a proxy or do not supply their proxy credentials through the user information portion of their proxy URL are not subject to this vulnerability.
Github Security Advisory
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
requeststo a version that resolves this vulnerability.Fixed in 2.31.0Patch GHSA-j8r2-6x86-q33q - Operational
Rotate any proxy credentials (proxy username/password) after upgrading to Requests 2.31.0+ to address potential unintended leakage of the Proxy-Authorization header value.
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2209469?
The severity of REDHAT-BUG-2209469 is considered high due to potential unauthorized exposure of Proxy-Authorization headers.
How do I fix REDHAT-BUG-2209469?
To fix REDHAT-BUG-2209469, upgrade the Requests library to version 2.31.0 or later.
Which versions are affected by REDHAT-BUG-2209469?
REDHAT-BUG-2209469 affects Requests library versions between 2.3.0 and 2.30.0.
What types of systems are vulnerable to REDHAT-BUG-2209469?
Any system using Requests library versions from 2.3.0 to 2.30.0 with proxy configurations is vulnerable to REDHAT-BUG-2209469.
Can REDHAT-BUG-2209469 lead to unauthorized access?
Yes, REDHAT-BUG-2209469 can lead to unauthorized access as it may expose sensitive Proxy-Authorization headers.