All vulnerabilities

PyPI

CVE-2026-134465

mcp-server-git: nested gitdir file bypasses --repository restriction

Severity
Medium 5.8
Published
23 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
2026.10.28
Exploit chance
0.2% in the next 30 daysHigher than 7% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Path traversal (CWE-22)
Attack
Needs local access · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change some data
CVSS vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
mcp-server-gitPyPI · osv:PyPI:mcp-server-git
  • Every version before 2026.10.28

About mcp-server-git

Weekly downloads (PyPI)
115,976PyPI Stats, 23 Nov 2026

This is the only vulnerability in mcp-server-git in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-134465