Skip to content

build(deps): bump gitpython and python-dotenv to fix open security advisories#6

Merged
christopherhuber merged 2 commits intomainfrom
bump-vuln-deps
Apr 29, 2026
Merged

build(deps): bump gitpython and python-dotenv to fix open security advisories#6
christopherhuber merged 2 commits intomainfrom
bump-vuln-deps

Conversation

@christopherhuber
Copy link
Copy Markdown
Contributor

Summary

Closes the three open Dependabot alerts on main:

  • High GHSA-x2qx-6953-8485 — GitPython unsafe-option check runs before shlex.split, letting --config core.hooksPath=… bypass validation in Repo.clone() / Submodule.update(). Fixed in 3.1.47.
  • High GHSA-rpm5-65cw-6hj4 — GitPython command injection via git options bypass. Fixed in 3.1.47.
  • Medium GHSA-mf9w-mj56-hr94 — python-dotenv set_key follows symlinks, enabling arbitrary file overwrite. Fixed in 1.2.2.

Locked versions move gitpython 3.1.46 → 3.1.49 and python-dotenv 1.2.1 → 1.2.2. Both are minor bumps with no API changes touching this codebase's usage (gitpython only used in update_publication.py for git metadata; python-dotenv only for settings loading).

Test plan

  • uv sync resolves cleanly
  • uv run pytest passes against master/slave Postgres
  • uv run pre-commit run --all-files clean
  • Dependabot alerts page shows the three advisories closed after merge

…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.
@christopherhuber christopherhuber merged commit 8b67bd2 into main Apr 29, 2026
1 check passed
@christopherhuber christopherhuber deleted the bump-vuln-deps branch April 29, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant