Bump GitPython to 3.1.47 to fix two security advisories#22
Merged
blattms merged 1 commit intoOPM:masterfrom Apr 27, 2026
Merged
Bump GitPython to 3.1.47 to fix two security advisories#22blattms merged 1 commit intoOPM:masterfrom
blattms merged 1 commit intoOPM:masterfrom
Conversation
Fixes GHSA-rpm5-65cw-6hj4 (CVSS 8.8, command injection via underscore-form `upload_pack=`/`receive_pack=` kwargs that bypass the unsafe-option check) and GHSA-x2qx-6953-8485 (CVSS 8.1, argument injection through `multi_options` validated before `shlex.split`). Both are fixed in 3.1.47. The `^3.1.44` constraint in pyproject.toml already permits this, so only the lockfile changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps GitPython from 3.1.44 to 3.1.47 in
python/sphinx_docs/poetry.lockto address two high-severity Dependabot alerts:upload_pack=/receive_pack=kwargs that bypass the unsafe-option check inRepo.clone_from(),Remote.fetch/pull/push().multi_optionsis validated beforeshlex.split, letting a string like"--branch main --config core.hooksPath=..."slip past the check.Both are first patched in 3.1.47, so a single bump closes both alerts. The existing
gitpython = "^3.1.44"constraint inpyproject.tomlalready permits 3.1.47, so only the lockfile changes.Test plan
poetry update gitpython— lockfile updated to 3.1.47, no other entries changedpoetry installsucceedspoetry run pytestpassesimport git; git.__version__ == "3.1.47"confirmed🤖 Generated with Claude Code