Skip to content

CVE-2026-134465 mcp-server-git: nested gitdir file bypasses --repository restriction

MediumCVSS 5.8 EPSS 0.42%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

In mcp-server-git before 2026.10.28, the --repository restriction can be bypassed through a nested directory that contains a .git file with a gitdir pointer to a repository outside the allowed path. A caller who can invoke the server's tools, place such a file in the allowed tree, and knows the outside repository's path can read committed content from that repository and create branches in it.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypi mcp-server-git < 2026.10.28 2026.10.28 Fixed

Affected products

ProductAffected versionsFixed in
pypi mcp-server-git < 2026.10.28 2026.10.28

References