gitpython
Affected
- introduced
0, fixed3.1.60(ecosystem)
Fixed versions
3.1.60
Fix
- Fixed version
3.1.60pip install --upgrade gitpython==3.1.60
Advisory
Also known as: CVE-2026-87817, GHSA-239g-whfq-7xj9
The record has no summary.
GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory that executes when a victim calls index.commit() on a cloned or opened repository.
Not rated by the source.
0, fixed 3.1.60 (ecosystem)3.1.60
3.1.60pip install --upgrade gitpython==3.1.60Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0