—
PYSEC-2026-3949
Quick fix
PYSEC-2026-3949 — gitpython: upgrade to the fixed version with the command below.
pip install --upgrade 'gitpython>=3.1.57'Details
GitPython before 3.1.57 fails to guard git option forwarding in IndexFile.checkout() and TagReference.create(), allowing attackers to pass unsafe options via kwargs. Attackers can use --prefix to overwrite arbitrary files with repository content or -F to read arbitrary files returned in-band.
Are you affected?
Enter the version of the package you're using.