mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). In mcp-server-git versions prior to 2026.1.14, the git_add tool did not validate that file paths provided in the files argument were within the repository boundaries. Because the tool used GitPython's repo.index.add() rather than the Git CLI, relative paths containing `../` sequences that resolve outside the repository were accepted and staged into the Git index. Users are advised to upgrade to 2026.1.14 or newer to remediate this issue.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MLflow | servers | before 2026.1.14 | 2026.1.14 | Patch available | CNA |
| — | mcp-server-git (PyPI) | before 2026.1.14 | 2026.1.14 | Patch available | GHSA-vjqx-cfc4-9h6v |
- servers VendorMLflow Affected before 2026.1.14 Fixed in 2026.1.14 Patch available CNA
- mcp-server-git (PyPI) Vendor— Affected before 2026.1.14 Fixed in 2026.1.14 Patch available GHSA-vjqx-cfc4-9h6v
Remediation
- Fix · CNA servers (modelcontextprotocol) Fixed in 2026.1.14
- Fix · GHSA-vjqx-cfc4-9h6v mcp-server-git (PyPI) Fixed in 2026.1.14 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-27735
- 2026-10-03 Alias added: GHSA-vjqx-cfc4-9h6v
References
Patch 2
More MLflow Model Context Protocol Servers vulnerabilities
- TI-2025-41724 mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary filesystem locations CVSS 4.0MEDIUM 6.5
- TI-2025-41726 mcp-server-git has missing path validation when using --repository flag CVSS 4.0MEDIUM 6.4
- TI-2025-41725 mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files CVSS 4.0MEDIUM 6.3
Sources
- CVE-2026-27735 · CVE Program
- CVE-2026-27735 · NVD
- FIRST EPSS
- GHSA-vjqx-cfc4-9h6v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences