Skip to content

Bump GitPython to 3.1.47 to fix two security advisories#22

Merged
blattms merged 1 commit intoOPM:masterfrom
hakonhagland:upgrade_gitpython
Apr 27, 2026
Merged

Bump GitPython to 3.1.47 to fix two security advisories#22
blattms merged 1 commit intoOPM:masterfrom
hakonhagland:upgrade_gitpython

Conversation

@hakonhagland
Copy link
Copy Markdown
Collaborator

Summary

Bumps GitPython from 3.1.44 to 3.1.47 in python/sphinx_docs/poetry.lock to address two high-severity Dependabot alerts:

  • GHSA-rpm5-65cw-6hj4 (CVSS 8.8, CWE-78) — command injection via underscore-form upload_pack= / receive_pack= kwargs that bypass the unsafe-option check in Repo.clone_from(), Remote.fetch/pull/push().
  • GHSA-x2qx-6953-8485 (CVSS 8.1, CWE-88) — argument injection: multi_options is validated before shlex.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 in pyproject.toml already permits 3.1.47, so only the lockfile changes.

Test plan

  • poetry update gitpython — lockfile updated to 3.1.47, no other entries changed
  • poetry install succeeds
  • poetry run pytest passes
  • import git; git.__version__ == "3.1.47" confirmed

🤖 Generated with Claude Code

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>
@blattms blattms merged commit 9d131af into OPM:master Apr 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants