PT-2026-22055 · Unknown · Git-Mcp-Server
0Dd-Gfor
·
Published
2026-02-25
·
Updated
2026-05-07
·
CVE-2026-27735
CVSS v3.1
6.5
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
mcp-server-git versions prior to 2026.1.14
Description
The Model Context Protocol Servers software contains an issue where the
git add tool does not properly validate file paths provided in the files argument. This allows relative paths containing ../ sequences that resolve outside the repository boundaries to be accepted and staged into the Git index. This could potentially allow sensitive files to be exfiltrated through subsequent commit and push operations. The tool utilizes GitPython's repo.index.add() which does not enforce working-tree boundary checks. The fix involves switching to repo.git.add(), which delegates to the Git CLI and enforces these checks.Recommendations
Upgrade to mcp-server-git version 2026.1.14 or newer.
Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Git-Mcp-Server