What’s Vulnerable › Vulnerabilities

CVE-2026-73622: GitPython before 3.1.55 Environment Variable Exfiltration via Remote.add()

Description

GitPython before 3.1.55 fails to disable environment variable expansion in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate secrets by supplying URLs containing variable references. Attackers can craft URLs with environment variable tokens that are expanded into .git/config and .gitmodules, then transmitted to attacker-controlled hosts during fetch or pull operations.

Affected products

How to fix

Upgrade to a fixed version: gitpython-developers GitPython 3.1.55. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-73622 or the next vulnerability affects your stack