# CVE-2026-27735: mcp-server-git : Path traversal in git\_add allows staging files outside repository boundaries

- Priority: **Routine**
- Reason: Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-25 · Modified: 2026-02-26
- Aliases: GHSA-vjqx-cfc4-9h6v, PYSEC-2026-2630
- Record: https://cvemate.com/vulnerability/CVE-2026-27735 · JSON: https://cvemate.com/vulnerability/CVE-2026-27735/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 0.353%, percentile 30.899%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- lfprojects model\_context\_protocol\_servers: \< 2026.1.14
- modelcontextprotocol servers: \< 2026.1.14
- PyPI mcp-server-git (PyPI): \< 2026.1.14

## References

- <https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-vjqx-cfc4-9h6v>
- <https://github.com/modelcontextprotocol/servers/pull/3164>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27735>
- <https://github.com/modelcontextprotocol/servers/commit/862e717ff714987bd5577318df09858e14883863>
- <https://github.com/modelcontextprotocol/servers>
- <https://pypi.org/project/mcp-server-git>
- <https://github.com/advisories/GHSA-vjqx-cfc4-9h6v>

---

Data as of 2026-12-05T05:10:43.384Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
