Environment Variable Exfiltration in GitPython by GitPython Developers
CVE-2026-73622
8.7HIGH
What is CVE-2026-73622?
GitPython prior to version 3.1.55 contains a vulnerability that allows malicious actors to exfiltrate sensitive information. This occurs through the improper handling of environment variable expansions during URL processing in Remote.create() and Submodule.add() methods. Attackers can construct URLs that leverage environment variable tokens, which when executed, expose .git/config and .gitmodules content and send it to unauthorized hosts during fetch or pull operations. It’s essential for users to update to the latest version to mitigate this risk.
Affected Version(s)
GitPython 0 < 3.1.55
GitPython 3.1.55
