What’s Vulnerable › Vulnerabilities
CVE-2026-87818: GitPython 3.1.59 Local File Content Oracle via --no-index
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-09-09 · updated 2026-09-16
- Weakness: CWE-88
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.
Affected products
- gitpython-developers GitPython: before 3.1.60 — fixed in 3.1.60
How to fix
Upgrade to a fixed version: gitpython-developers GitPython 3.1.60. Check the vendor advisory for mitigations.
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-whh4-5q6c-9v3x
- https://www.vulncheck.com/advisories/gitpython-3.1.59-local-file-content-oracle-via-no-index
Get alerted when CVE-2026-87818 or the next vulnerability affects your stack