Require explicit opt-in for filesystem diffs by Byron · Pull Request #2217 · 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. Advisory GHSA-whh4-5q6c-9v3x GHSA-whh4-5q6c-9v3x reports a repository-boundary bypass in the high-level diff API. This change requires callers to explicitly opt in before diff paths may use filesystem-wide semantics. Reproduction mechanics are intentionally omitted while the advisory is unpublished. Advisory summary Severity: medium Package: GitPython (pip) Affected range: = 3.1.59 Patched versions: none published CVE: none assigned Changes Classify --no-index as an unsafe diff option. Cover keyword and raw-option spellings through commit and index APIs. Clarify the existing explicit opt-in documentation. Validation Focused diff security tests: 2 passed. Complete test/test_diff.py: 25 passed, 1 unrelated local-environment failure in staged conflict reporting. Ruff check and format checks passed. git diff --check passed. Git baseline: Git 2.50.1 documents filesystem operand behavior in Documentation/git-diff.adoc and implements it in builtin/diff.c. Post-commit Codex review was attempted once for 14200584 but the CLI usage allowance was exhausted before review began.
Skip to content