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

- Severity: Medium 6.4 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 40% of CVEs (2026-11-30)
- Published: 2026-02-25T23:45:52.077Z
- Modified: 2026-07-13T16:42:29.302Z
- Also known as: GHSA-vjqx-cfc4-9h6v, PYSEC-2026-2630
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- modelcontextprotocol servers: < 2026.1.14
- mcp-server-git (PyPI): before 2026.1.14
- lfprojects model_context_protocol_servers: before 2026.1.14

## Every score

- GitHub_M: CVSS:4.0 6.4 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N`

## References

- <https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-vjqx-cfc4-9h6v> (patch, vendor-advisory, web)
- <https://github.com/modelcontextprotocol/servers/pull/3164> (issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27735> (advisory)
- <https://github.com/modelcontextprotocol/servers/commit/862e717ff714987bd5577318df09858e14883863> (web)
- <https://github.com/modelcontextprotocol/servers> (package)
- <https://pypi.org/project/mcp-server-git> (package)
- <https://github.com/advisories/GHSA-vjqx-cfc4-9h6v> (advisory)

## Sources

- CVE List: [CVE-2026-27735](https://www.cve.org/CVERecord?id=CVE-2026-27735), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-vjqx-cfc4-9h6v](https://github.com/advisories/GHSA-vjqx-cfc4-9h6v), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-27735](https://nvd.nist.gov/vuln/detail/CVE-2026-27735), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2630](https://osv.dev/vulnerability/PYSEC-2026-2630), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-27735 · Whole record: https://cve.day/CVE-2026-27735.json · Rebuilt by cve.day 2026-11-25T22:59:14.917Z
