Information Exposure Affecting gitpython package, versions [,3.1.55)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-GITPYTHON-18306826
  • published25 Jul 2026
  • disclosed24 Jul 2026
  • creditalimony

Introduced: 24 Jul 2026

New CVE NOT AVAILABLE CWE-214  (opens in a new tab)

How to fix?

Upgrade GitPython to version 3.1.55 or higher.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Information Exposure in the Repo.create_remote process when attacker-controlled URLs are passed and environment variables are expanded into the URL. An attacker can obtain sensitive environment secrets by supplying a crafted URL containing environment variable references, which are then expanded and stored in configuration files and transmitted to attacker-controlled servers during subsequent network operations.

CVSS Base Scores

version 4.0
version 3.1