—
PYSEC-2026-3948
Quick fix
PYSEC-2026-3948 — gitpython: upgrade to the fixed version with the command below.
pip install --upgrade 'gitpython>=3.1.57'Details
GitPython before 3.1.57 contains an incomplete denylist in the unsafe_git_archive_options guard that omits --add-file and --add-virtual-file options. Attackers can supply these options to Repo.archive() to read arbitrary files from the filesystem and include them in the returned archive.
Are you affected?
Enter the version of the package you're using.