You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GHSA-3f7w-8rr8-f37f reports that caller-controlled options forwarded by IndexFile.checkout() and TagReference.create() can make Git write to or read from arbitrary filesystem paths.
Add regression coverage proving the unsafe options are rejected by default while preserving the explicit allow_unsafe_options escape hatch. Reuse GitPython's existing option candidate normalization and unsafe-option guard at both public API boundaries.
Git baseline: a23bace963d508bd96983cc637131392d3face18. Documentation/git-checkout-index.adoc defines --prefix as prepending an output path, and Documentation/git-tag.adoc defines -F/--file as reading a tag message from a file.
Validation:
- uv run --with-editable .[test] pytest -q (focused security tests: 3 passed)
- uv run --with-editable .[test] pytest -q test/test_index.py test/test_refs.py (56 passed, 2 unrelated fixture failures due to absent master branch)
- uvx ruff check (touched files)
- uvx ruff format --check (touched files)
- git diff --check
0 commit comments