CVE-2026-134465
mcp-server-git: nested gitdir file bypasses --repository restriction
Medium · 5.8Fix available
- CVSS
- 5.8
- EPSS
- 0.41% (p27)
- Published
- 2026-11-23
- Age
- 6d old
- Modified
- 2026-11-24
- Product
- Anthropic mcp-server-git
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
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.
Fixed in
2026.10.28
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | mcp-server-git | >=0, <2026.10.28 | 2026.10.28 |