Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-27735: Model Context Protocol Servers git_add tool path traversal outside repository

Identifier
CVE-2026-27735
Published
Record updated
View JSON
Affected
  • mcp-server-git < 2026.1.14
Fixed in
2026.1.14
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

In mcp-server-git versions prior to 2026.1.14, the git_add tool did not check that paths in its files argument stayed inside the repository. Because it used GitPython's repo.index.add() instead of the Git CLI, relative paths containing ../ sequences that resolved outside the repository were accepted and staged into the Git index.

Mitigation

Upgrade to 2026.1.14 or newer.