CVE-2026-134465
published medium CVSS 4.0 · 5.8mcp-server-git: nested gitdir file bypasses --repository restriction
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Anthropic | — | mcp-server-git0 to < 2026.10.28 · Other versions: unaffected | Affected | Not stated | Anthropic |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- Anthropic · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Anthropic | mcp-server-git | 0 to < 2026.10.28 (affected · custom)Default: unaffected | Anthropic · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
1Provider assertions
2Anthropic · cna
mcp-server-git: nested gitdir file bypasses --repository restriction
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1be13dd15e7edcaad929291da7c05453edfa15f9d63a87dccd66d9d5bbdf1d31
- Ingested
- 24 Nov 2026, 17:18:49 UTC
- Source record
- Official CVE record