Information disclosure in GitPython - #VU139088
Published: July 22, 2026
GitPython
Detailed vulnerability description
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to exposure of sensitive information to an unauthorized actor in Repo.clone_from() and Git.polish_url() when processing an attacker-controlled clone URL. A remote attacker can supply a crafted URL containing environment-variable tokens to disclose sensitive information.
The issue affects non-Cygwin platforms, where environment-variable expansion is applied to the clone URL before it is passed to git clone.