# Unintended leak of Proxy-Authorization header in requests

Advisory record · `GHSA-j8r2-6x86-q33q`

- **Identifiers:** `GHSA-j8r2-6x86-q33q` · `CVE-2023-32681` · `PYSEC-2023-74`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-200](https://cwe.mitre.org/data/definitions/200.html)
- **Tags:** [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md)
- **Published:** 22 May 2023
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 22 May 2023, 20:36 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `requests` (PyPI): affected `>=2.3.0, <2.31.0`; fixed in `2.31.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The requests package, versions 2.3.0 up to but not including 2.31.0, can leak the Proxy-Authorization header to destination servers during redirects to HTTPS origins when proxy credentials are supplied in the URL. An attacker who can receive the redirected request, such as a malicious server or a proxy-adjacent party, could capture those proxy credentials. Upgrade to requests 2.31.0 or later; if you cannot upgrade, disable redirects by setting allow_redirects to False and handle 3xx responses yourself.

Written 5 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.1 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.030, the 87th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 22 May 2023, 15:13 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/psf/requests/security/advisories/GHSA-j8r2-6x86-q33q)
- 31 Oct 2026, 14:36 UTC: First seen by agentprime
- 31 Oct 2026, 14:36 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-j8r2-6x86-q33q)

## Sources

- [GitHub Advisory Database: GHSA-j8r2-6x86-q33q](https://github.com/advisories/GHSA-j8r2-6x86-q33q)
- [OSV: GHSA-j8r2-6x86-q33q](https://osv.dev/vulnerability/GHSA-j8r2-6x86-q33q)
- <https://github.com/psf/requests/security/advisories/GHSA-j8r2-6x86-q33q>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-32681>
- <https://github.com/psf/requests/commit/74ea7cf7a6a27a4eeb2ae24e162bcc942a6706d5>
- <https://github.com/psf/requests>
- <https://github.com/psf/requests/releases/tag/v2.31.0>
- <https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2023-74.yaml>
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00018.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AW7HNFGYP44RT3DUDQXG2QT3OEV2PJ7Y>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KOYASTZDGQG2BWLSNBPL3TQRL2G7QYNZ>
- <https://security.gentoo.org/glsa/202309-08>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-j8r2-6x86-q33q>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-j8r2-6x86-q33q/>. Everything for agents: <https://agentprime.io/llms.txt>.
