ADVISORIES

Vulnerability

CVE-2026-78679

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.

20 advisories report this vulnerability, across 7 ecosystems.

Advisories in PyPI

  • GHSA-3wxw-xv34-2frg

    GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251)

    Moderate CVE-2026-78679 PyPI Updated 23 September 2026
  • PYSEC-2026-3837

    GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251)

    CVE-2026-78679 PyPI Updated 10 September 2026

References