build(deps): bump gitpython and python-dotenv to fix open security advisories#6
Merged
christopherhuber merged 2 commits intomainfrom Apr 29, 2026
Merged
build(deps): bump gitpython and python-dotenv to fix open security advisories#6christopherhuber merged 2 commits intomainfrom
christopherhuber merged 2 commits intomainfrom
Conversation
…HSA-rpm5-65cw-6hj4 Two high-severity command-injection advisories in <3.1.47 where multi_options validation runs before shlex.split, allowing --config core.hooksPath=… to bypass the unsafe-options check in Repo.clone() and Submodule.update().
Symlink-following in set_key allowed arbitrary file overwrite when the dotenv path was attacker-controlled; fixed in 1.2.2.
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
Closes the three open Dependabot alerts on
main:GHSA-x2qx-6953-8485— GitPython unsafe-option check runs beforeshlex.split, letting--config core.hooksPath=…bypass validation inRepo.clone()/Submodule.update(). Fixed in 3.1.47.GHSA-rpm5-65cw-6hj4— GitPython command injection via git options bypass. Fixed in 3.1.47.GHSA-mf9w-mj56-hr94— python-dotenvset_keyfollows symlinks, enabling arbitrary file overwrite. Fixed in 1.2.2.Locked versions move
gitpython3.1.46 → 3.1.49 andpython-dotenv1.2.1 → 1.2.2. Both are minor bumps with no API changes touching this codebase's usage (gitpythononly used inupdate_publication.pyfor git metadata;python-dotenvonly for settings loading).Test plan
uv syncresolves cleanlyuv run pytestpasses against master/slave Postgresuv run pre-commit run --all-filesclean