# GitPython: Environment-variable exfiltration via Repo.create_remote() / Remote.add() URL (incomplete fix of GHSA-rwj8-pgh3-r573)

Advisory record · `GHSA-94p4-4cq8-9g67`

- **Identifiers:** `GHSA-94p4-4cq8-9g67` · `CVE-2026-73622` · `PYSEC-2026-3951`
- **State:** Confirmed
- **Severity:** CVSS 8.7 High
- **Critical:** No
- **Weakness (CWE):** [CWE-200](https://cwe.mitre.org/data/definitions/200.html) · [CWE-214](https://cwe.mitre.org/data/definitions/214.html)
- **Tags:** [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md) · [CWE-214](https://agentprime.io/advisories/tag/cwe-214.md)
- **Published:** 24 Jul 2026
- **Updated:** 24 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 24 Jul 2026, 21:45 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `gitpython` (PyPI): affected `<3.1.55`; fixed in `3.1.55`

## Machine-written summary

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

> GitPython versions before 3.1.55 are affected. When an attacker can supply a URL to Repo.create_remote() or Remote.add(), environment variables in the URL are expanded, so secrets from the hosting process (such as AWS keys or CI tokens) can be written into .git/config and sent to the attacker's host on the next fetch or pull. Upgrade to GitPython 3.1.55, which is listed as the fixed version.

Written 1 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

- 8.7 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`, from CNA (VulnCheck)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0051, the 43rd percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:09 UTC: First seen by agentprime
- 31 Oct 2026, 14:09 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-94p4-4cq8-9g67)

## Sources

- [GitHub Advisory Database: GHSA-94p4-4cq8-9g67](https://github.com/advisories/GHSA-94p4-4cq8-9g67)
- [OSV: GHSA-94p4-4cq8-9g67](https://osv.dev/vulnerability/GHSA-94p4-4cq8-9g67)
- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-94p4-4cq8-9g67>
- <https://github.com/gitpython-developers/GitPython/commit/863417457a0633db7ea5aed4fd01e0b291a41162>
- <https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2>
- <https://github.com/gitpython-developers/GitPython>
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.55>
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3951.yaml>
- <https://www.vulncheck.com/advisories/gitpython-before-environment-variable-exfiltration-via-remote-add>

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-94p4-4cq8-9g67>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-94p4-4cq8-9g67/>. Everything for agents: <https://agentprime.io/llms.txt>.
