PyPI: requests

CVE-2023-32681

Safety vulnerability ID: SFTY-20230526-66917

Safety legacy ID: pyup.io-58755

Affected versions of Requests are vulnerable to proxy credential leakage. When redirected to an HTTPS endpoint, the Proxy-Authorization header is forwarded to the destination server due to the use of rebuild_proxies to reattach the header. This may allow a malicious actor to exfiltrate sensitive information.

Created at: Nov 5, 2025Updated at: Nov 5, 2025

Overview

Unintended leak of Proxy-Authorization header in requests

Advisory

Affected versions of Requests are vulnerable to proxy credential leakage. When redirected to an HTTPS endpoint, the Proxy-Authorization header is forwarded to the destination server due to the use of rebuild_proxies to reattach the header. This may allow a malicious actor to exfiltrate sensitive information.

Affected Package

Affecting requests package, versions
>=2.3.0,<2.31.0

Also affects

---

How to Fix

Upgrade
requests
to
2.31.0
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more