What’s Vulnerable › Vulnerabilities

CVE-2026-78679: GitPython before 3.1.59 Arbitrary File Read via TagReference.create

Description

GitPython before 3.1.59 contains an arbitrary file read vulnerability in TagReference.create() where a positional reference parameter bypasses the unsafe option guard. Attackers can supply a reference value like --file=<path> to read arbitrary files, with contents returned in the annotated tag message.

Affected products

How to fix

Upgrade to a fixed version: gitpython-developers GitPython 3.1.59. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-78679 or the next vulnerability affects your stack