CVE-2026-134465: mcp-server-git: nested gitdir file bypasses --repository restriction
Medium · CVSS 5.8 (CVSS 4.0)EPSS 0.41%, 38th percentilePublished Updated Assigner: 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.
CWE-22
Tracked companies
Mapped from the CVE’s affected-product data, NVD CPE matches, vendor advisories or package feeds. A mapping means the vendor’s software is named, not that its hosted service was exposed.
Status incidents that name it
No tracked status incident names this CVE.
Affected vendors and products
Anthropic: mcp-server-git
References
- CVE record on cve.org (opens in new tab)
- NVD entry (opens in new tab)
- github.com/modelcontextprotocol/servers/security/advisories/GHSA-w766-5x43-whvw (opens in new tab)
- CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (opens in new tab)
- This product uses data from the NVD API but is not endorsed or certified by the NVD. (opens in new tab)
- Known Exploited Vulnerabilities catalog from CISA. (opens in new tab)
- EPSS scores from FIRST (Exploit Prediction Scoring System). (opens in new tab)