VDB
Sign up

PYSEC-2026-3983

Quick fix

PYSEC-2026-3983 — gitpython: upgrade to the fixed version with the command below.

pip install --upgrade 'gitpython>=3.1.60'

Details

GitPython 3.1.59 fails to restrict the --no-index option in the high-level diff API, allowing attackers to read arbitrary filesystem paths as repository operands. Attackers can combine --no-index with -I/--ignore-matching-lines to create a content-dependent Boolean oracle, repeatedly querying local files to recover single-line secrets through distinguishable success or error responses.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/gitpython
Introduced in: 0Fixed in: 3.1.60
Fixpip install --upgrade 'gitpython>=3.1.60'

References