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

Validate submodule names before filesystem operations by Byron · Pull Request #2202 · 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-hmq2-w58f-27jc Advisory summary GHSA: GHSA-hmq2-w58f-27jc Severity: High Package: GitPython (pip) Affected versions: <= 3.1.57 Patched versions: not yet assigned CVE: not yet assigned This change validates submodule names before filesystem operations. Details are intentionally concise while the advisory remains a draft. Changes Reject empty, rooted, drive-qualified, and parent-component submodule names. Validate before constructing module paths and before opening or mutating existing checkouts, covering repositories initialized by older vulnerable versions. Validate programmatic add and rename inputs before making changes. Add local regression coverage for both new initialization and an existing separate Git directory outside the clone. Git baseline Matches the name-validation behavior introduced by Git commit 0383bbb901 (submodule-config: verify submodule names as paths), with additional handling for Python path-join semantics. Validation pytest -q test/test_submodule.py on Python 3.14.6: 39 passed, 1 skipped, 1 xfailed Ruff check and format check: passed mypy for git/objects/submodule/base.py: passed No Docker reproduction was used.

Skip to content

Repository navigation