CVE-2026-87818

Medium

Description

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductGitpython
PublishedSep 9, 2026
First seenSep 9, 2026
Weakness typeCWE-88CWE-88

How to fix

Update
  • gitpython_project gitpython3.1.60 or later
  • gitpython3.1.60 or later

Affected products

ProductAffected versionsFixed in
gitpython_project gitpythonv < 3.1.603.1.60
gitpythonPyPI3.1.59 ≤ v, 3.1.59 ≤ v < 3.1.603.1.60

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.