REDHAT-BUG-2209469: Medium severity pypi/requests vulnerability

Published May 24, 2023
·
Updated

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

1 affected component
pypi/requests>=2.3.0<=2.30.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade requests to a version that resolves this vulnerability.

    Fixed in 2.31.0Patch GHSA-j8r2-6x86-q33q
  2. 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

May 24, 2023
Data Sourced
via Red Hat·03:06 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

How do I fix REDHAT-BUG-2209469?

To fix REDHAT-BUG-2209469, upgrade the Requests library to version 2.31.0 or later.

3

Which versions are affected by REDHAT-BUG-2209469?

REDHAT-BUG-2209469 affects Requests library versions between 2.3.0 and 2.30.0.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203