Skip to content

deps: raise docs security floors for gitpython and pymdown-extensions - #107

Merged
ebourgeois merged 1 commit into
mainfrom
fix/docs-deps-security
Aug 27, 2026
Merged

deps: raise docs security floors for gitpython and pymdown-extensions#107
ebourgeois merged 1 commit into
mainfrom
fix/docs-deps-security

Conversation

@ebourgeois

Copy link
Copy Markdown
Contributor

What

Fixes all 20 open Dependabot security alerts against docs/pyproject.toml:

Package Change Alerts closed
GitPython (transitive via mkdocs-git-revision-date-localized-plugin) add explicit floor >=3.1.58 17
pymdown-extensions ^10.7^11.0.1 3

GitPython advisories covered: command injection via unguarded git option forwarding (Repo.clone_from, Repo.archive, IndexFile.checkout, etc.), git-config name/section injection enabling core.sshCommand RCE, arbitrary file read/overwrite, and environment-variable exfiltration.

pymdown-extensions advisories covered: b64 path traversal and exponential-backtracking ReDoS in caret/tilde/betterem/magiclink.

Why an explicit gitpython constraint

docs/poetry.lock is gitignored, so GitHub's dependency graph derives versions from pyproject.toml alone. GitPython never appeared there, so there was no patched-floor signal. The floor constraint documents the requirement and forces the resolver to a patched release.

Validation

  • poetry update resolves to gitpython 3.1.60 and pymdown-extensions 11.0.2
  • mkdocs build passes (only the pre-existing rustdoc-link warning)

The 20 alerts should auto-close once this lands on main and the dependency graph re-scans the manifest.

Fixes all 20 open Dependabot security alerts (docs/pyproject.toml):

- gitpython >= 3.1.58 (transitive via mkdocs-git-revision-date-localized-plugin):
  closes 17 alerts covering command injection via unguarded git option
  forwarding, git-config name/section injection (core.sshCommand RCE),
  arbitrary file read/overwrite, and env-var exfiltration. Added as an
  explicit floor constraint since docs/poetry.lock is gitignored and
  GitHub's dependency graph otherwise has no patched-floor signal.
- pymdown-extensions ^10.7 -> ^11.0.1:
  closes 3 alerts (b64 path traversal, exponential-backtracking ReDoS).

Resolved to gitpython 3.1.60 and pymdown-extensions 11.0.2 locally;
mkdocs build passes.
@ebourgeois
ebourgeois merged commit a0a3254 into main Aug 27, 2026
31 checks passed
@ebourgeois
ebourgeois deleted the fix/docs-deps-security branch August 27, 2026 01:49
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.

1 participant