CVE-2023-32681
MEDIUM 6.1CVSS 3.1Unintended leak of Proxy-Authorization header in requests
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.
- Published
- 26 May 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-200
- Also known as
- GHSA-j8r2-6x86-q33qPYSEC-2023-74
- Sources
- NVDJSONOSV GHSA-j8r2-6x86-q33qJSONOSV PYSEC-2023-74JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | requestscpe:2.3:a:python:requests:*:*:*:*:*:*:*:* |
>= 2.3.0, < 2.31.0 | 2.31.0 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
= 37 | |
| OSV | PyPI | requests | >= 2.3.0, < 2.31.0 | 2.31.0 |
References
- https://github.com/psf/requests/commit/74ea7cf7a6a27a4eeb2ae24e162bcc942a6706d5 · Patch, WEB, FIX
- https://github.com/psf/requests/releases/tag/v2.31.0 · Release Notes, WEB
- https://github.com/psf/requests/security/advisories/GHSA-j8r2-6x86-q33q · Vendor Advisory, WEB, ADVISORY
- https://lists.debian.org/debian-lts-announce/2023/06/msg00018.html · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AW7HNFGYP44RT3DUDQXG2QT3OEV2PJ7Y/ · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KOYASTZDGQG2BWLSNBPL3TQRL2G7QYNZ/ · WEB
- https://security.gentoo.org/glsa/202309-08 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-32681 · ADVISORY
- https://github.com/psf/requests · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2023-74.yaml · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 26 May 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 May 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 May 2023)