← Winnitude! Search  ·  Reader Mode (2289 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 1 LINKS

Block file-reading Git options by Byron · Pull Request #2208 · gitpython-developers/GitPython

Tasks This section is for Byron only. Models continuing this PR must not add, remove, check, uncheck, rename, or reorder checkboxes here. refackiew Everything below this line was generated by Codex GPT-5. Created by Codex on behalf of Byron. Byron will review before this is ready to merge. Summary Reject file-reading options passed to blame APIs, including equivalent short and clustered forms. Inspect positional tag path/reference inputs and the legacy ref alias for unsafe file options. Reject the adjacent diff order-file input, including clustered forms, while preserving safe -S pickaxe behavior. Advisories GHSA-5xxx-qhh7-9287 GHSA-3wxw-xv34-2frg Advisory summary Both advisories are medium severity and affect the pip package GitPython through version 3.1.58. No patched version or CVE has been assigned yet. The change prevents caller-controlled Git options from reading local files through high-level blame and tag APIs, and closes the same class of issue in diff order-file handling. Validation Focused regression tests: 4 passed test_diff.py: 23 passed; 1 unrelated local branch-fixture failure test_repo.py and test_refs.py: 108 passed, 2 skipped; 5 unrelated local environment/history failures Ruff on changed files git diff --check Codex commit review: no actionable findings after follow-up fixes Git behavior reference: git.git cf5497b14c, including the documented file-input options for git blame, git diff, and git tag.

Skip to content

Repository navigation