Skip to content

Conversation

@gardera-security
Copy link

Update requests to 2.31.0

Merge this pull request to resolve 2 vulnerabilities in requests.

MEDIUM - CVE-2023-32681: python-requests: Unintended leak of Proxy-Authorization header

Description

Requests is a HTTP library. Since Requests 2.3.0, Requests has been leaking Proxy-Authorization headers to destination servers when redirected to an HTTPS endpoint. This is a product of how we use rebuild_proxies to reattach the Proxy-Authorization header to requests. For HTTP connections sent through the tunnel, the proxy will identify the header in the request itself and remove it prior to forwarding to the destination server. However when sent over HTTPS, the Proxy-Authorization header must be sent in the CONNECT request as the proxy has no visibility into the tunneled request. This results in Requests forwarding proxy credentials to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate sensitive information. This issue has been patched in version 2.31.0.

References

Publish date

2023-05-26

MEDIUM - CVE-2024-35195: requests: subsequent requests to the same host ignore cert verification

Description

Requests is a HTTP library. Prior to 2.32.0, when making requests through a Requests Session, if the first request is made with verify=False to disable cert verification, all subsequent requests to the same host will continue to ignore cert verification regardless of changes to the value of verify. This behavior will continue for the lifecycle of the connection in the connection pool. This vulnerability is fixed in 2.32.0.

References

Publish date

2024-05-20

Copy link
Author

@gardera-security gardera-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gardera Security Scan Results


🛡️ Scan Summary

No security issues were identified in this scan.

@patriknordlen patriknordlen deleted the gardera/pip/requests-2.28.1 branch June 24, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants