standardebooks · GitPython: --no-index bypasses diff unsafe-option protections and enables a blind local-file content oracle
Affects standardebooksSource GCVE Database
Not known to be exploited · CVSS 7.1 High : upgrade to 4.1.1 soon.
Data as of 22 Nov 2026, 18:11 UTC
- Patch
- Available – fixed in 4.1.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 9 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.
What to do
Upgrade standardebooks to 4.1.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewstandardebookspkg:brew/standardebooksOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in GitPython version 4.1.1 that fixes this vulnerability by treating the --no-index option as unsafe for the high-level diff API unless the caller explicitly sets allow_unsafe_options=True. Users should upgrade to GitPython 4.1.1 or later to remediate this issue. Until patched, applications should avoid passing attacker-controlled diff options and paths that could enable this oracle. No other mitigations are indicated by the vendor advisory.
Description
GitPython 3.1.59 contains a vulnerability in its high-level diff API where the use of the --no-index option bypasses protections against unsafe git diff options. This allows an attacker who can influence diff options and file paths to perform a blind local-file content oracle, potentially disclosing local file contents. The issue arises because --no-index treats path arguments as arbitrary filesystem paths, and when combined with the -I/--ignore-matching-lines option, it creates a content-dependent Boolean oracle. The vulnerability was confirmed in version 3.1.59 and fixed in 4.1.1.
References
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-whh4-5q6c-9v3x (opens in a new tab)
- github.com/gitpython-developers/GitPython/pull/2217 (opens in a new tab)
- github.com/gitpython-developers/GitPython/commit/09f2cf383a992d1af697364569e9f384748c1bd8 (opens in a new tab)
- github.com/gitpython-developers/GitPython (opens in a new tab)
- github.com/gitpython-developers/GitPython/releases/tag/3.1.60 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3983.yaml (opens in a new tab)
- vulncheck.com/advisories/gitpython-3.1.59-local-file-content-oracle-via-no-index (opens in a new tab)