The Git MCP Server presented Git staging as a repository-scoped tool, but the vulnerable implementation delegated user-provided file paths to GitPython without enforcing the same working-tree boundary at the final read. A caller able to influence the staged-file argument could use traversal components to select content outside the approved repository. That…
Inspect the ClaimsCase · DiggingBeagle record
Patched Git MCP staging could include files outside the repository
Git MCP Server staging previously allowed GitPython path resolution to include a file outside repository scope; a later MCP-FSD research reproduction confirms the boundary failure with planted credential material. The flaw was fixed before the October 2026 study.
Published by DiggingBeagle:
Public disclosure: Feb 25, 2026
A source-confirmed vulnerability in mcp-server-git versions before 2026.1.14. The advisory describes unauthorized staging and possible later disclosure; it does not document a customer exfiltration campaign or prove that every tool call leaks a secret.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
The maintainer GitHub advisory was read directly and identifies the affected staging call, path-traversal precondition and corrected release. There is no inspected production incident, customer exfiltration trace or independent local reproduction. Impact remains ungraded because the available evidence does not establish realized harm or a defensible general severity for the assessed deployment.
Assessed Oct 16, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-GIT-MCP-27735-TRAVERSAL-01 · CLM-GIT-MCP-27735-TRAVERSAL-02 · CLM-GIT-MCP-27735-TRAVERSAL-03 · Git MCP Server advisory GHSA-vjqx-cfc4-9h6v
At a glance
A single MCP tool can convey filesystem authority beyond the repository boundary even if its textual contract says it is limited to the checkout. The true restriction must apply before the file is staged, not only when a final diff is shown. Process-level filesystem permissions can reduce consequences but do not repair path normalization.
Read the implicationsNo confirmed real customer secret-exfiltration incident or exploit campaign. MCP-FSD reproductions in selected tool executions are not evidence of production agent prompt-injection success. Whether particular deployments additionally restrict the Git MCP process filesystem remains unknown. No independently verified customer secret exposure attributable to…
Limits and uncertaintyFull account
The Git MCP Server presented Git staging as a repository-scoped tool, but the vulnerable implementation delegated user-provided file paths to GitPython without enforcing the same working-tree boundary at the final read. A caller able to influence the staged-file argument could use traversal components to select content outside the approved repository. That content could enter Git's object storage through a seemingly ordinary staging operation.
Staging out-of-repository bytes is an unauthorized local effect, not by itself proof of Internet exfiltration. A later diff, commit or push could expose the staged content if accessible, but each additional action needs its own trace and permissions. The maintainer's 2026.1.14 release fixes CVE-2026-27735 by using Git CLI staging that rejects out-of-tree path selections. An earlier git_init issue was fixed separately and should not be treated as a continuing single exploit chain.
MCP-FSD subsequently exercised selected servers with synthetic credential files and documented filesystem-boundary violations, including this class of Git behavior. A schema-valid git_add argument and model permission to stage repository files do not entitle the server process to read arbitrary sibling paths. Tests should resolve real paths under the target operating system and confirm that both direct staging and later Git output remain within the authorized repository while legitimate staging continues to work.
Mechanism and trust boundary
- 01
Provide an out-of-tree path to git_add
A model, user or lower-trust tool result causes the MCP file-list argument to contain parent-directory traversal segments.
Boundary: tool argument / intended repository root
- 02
GitPython stages a host file
Before 2026.1.14, the implementation accepts that path and writes a Git index entry for data outside the intended working tree.
Boundary: repository abstraction / agent-host filesystem
- 03
A later Git operation may disclose staged contents
Commit, diff or push access could expose staged bytes. The advisory does not establish that such a later operation occurred against a production victim.
Boundary: local staged content / consumer or remote repository
- 04
Patched staging rejects the path
Release 2026.1.14 switches to Git CLI staging, which rejects files outside the working tree for the documented path.
Boundary: input validation / Git CLI enforcement
Claims & evidence
CLM-GIT-MCP-27735-TRAVERSAL-01The maintainer advisory assigns CVE-2026-27735 to Git MCP Server versions before 2026.1.14. GitPython-based staging accepted paths outside the working tree, potentially exposing their contents through later Git operations.supported
Basis: reported finding
- supportsGit MCP Server advisory GHSA-vjqx-cfc4-9h6vprimary disclosure
Advisory description and affected-version range
CLM-GIT-MCP-27735-TRAVERSAL-02Version 2026.1.14 replaces the staging operation with the Git CLI, which rejects paths outside the working tree.supported
Basis: reported finding
- supportsGit MCP Server advisory GHSA-vjqx-cfc4-9h6vprimary disclosure
Patched versions and fix description referencing pull request 3164
CLM-GIT-MCP-27735-TRAVERSAL-03The advisory describes disclosure through subsequent Git operations as a potential consequence of staging an external file; it does not claim that the git_add call alone transmits the file to a remote party.supported
Basis: reported finding
- supportsGit MCP Server advisory GHSA-vjqx-cfc4-9h6vprimary disclosure
Maintainer advisory, Description, statement on staging and subsequent commit and push
CLM-CP13-GIT-MCP-INDEPENDENT-STUDYThe later MCP-FSD paper reports using isolated synthetic credential probes to reproduce the out-of-repository Git staging disclosure effect and places it among a wider sample of filesystem-boundary implementation failures.supported
Basis: reported finding
- supportsMCP-FSD: filesystem boundary analysis of MCP serversprimary disclosure
CVE-2026-27735 case study, synthetic credential read and historical patch
Implications
A single MCP tool can convey filesystem authority beyond the repository boundary even if its textual contract says it is limited to the checkout. The true restriction must apply before the file is staged, not only when a final diff is shown. Process-level filesystem permissions can reduce consequences but do not repair path normalization.
Controls and mitigations
- Upgrade mcp-server-git to version 2026.1.14 or a later supported release and verify the installed package actually contains the Git CLI staging fix.
- Test relative parent paths, absolute paths and filesystem links with harmless fixtures on isolated installations.
- Give the MCP server only the filesystem access required for its repositories; a corrected path check is not a substitute for operating-system containment.
- Audit subsequent Git commit, diff and push activity separately before asserting that host secrets left the machine.
Unknowns and contradictions
- No confirmed real customer secret-exfiltration incident or exploit campaign.
- MCP-FSD reproductions in selected tool executions are not evidence of production agent prompt-injection success.
- Whether particular deployments additionally restrict the Git MCP process filesystem remains unknown.
- No independently verified customer secret exposure attributable to this specific patched staging vulnerability.
Sources and citation
Material revision history
- Oct 16, 2026 · Published version · first publication · revision 160
- Oct 18, 2026 · Published version · material revision · revision 171Public fields changed: claims, concepts, implications, links, narrative, references, summary, unknowns