Disclosed weakness · no CVE recorded
MCP Git path errors could reveal server environment values
Model Context Protocol · mcp-server-git
First documented disclosure · Review checkpoint
Summary
A caller-controlled repository path could expand environment variables into an error response.
Severity and exploitation evidence
Medium · numeric CVSS score not recorded. Severity source.
Exploitation not established: Public original reports and static source review establish the weakness or reported demonstrations. Malicious exploitation against users is not established; this review executed no exploit or package.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
GitPython expanded path variables before reporting that the resulting directory did not exist.
Conditions required
The attacker influences repo_path; with --repository the server working directory must be inside the allowed repository for the literal validation to pass.
Potential impact
Disclosure of environment values held by the server process; repository confinement was not shown bypassed.
Affected versions and configurations
Before 2026.11.27; report tested 2026.11.18 with GitPython 3.2.1.
Fix and mitigation status
2026.11.27 opens literal absolute paths with expansion disabled.
Practical next steps
Upgrade to 2026.11.27 and minimize credentials inherited by the server; review error transcripts for exposure.
Operating lesson
Error messages must not reveal the result of authority-bearing input expansion.
Evidence and limits
The maintainer assigns qualitative Medium without numeric CVSS. Tagged code also avoids leading-tilde expansion. A model steered by injected content is one possible way to influence the tool argument, not a demonstrated production intrusion. The public correction PR, stable monorepo 2.6.0 release and issue-specific tagged production source were reviewed. Package versions are distinct from the monorepo version. No CVE is published in the reviewed maintainer identity fields. Original report prose describing an unpatched test build is superseded only for remediation by current advisory metadata and the release.
Sources
- Maintainer advisory
Primary source ·
- MCP servers 2.6.0 stable release
Primary source ·
- Public correction PR
Primary source ·
- Tagged production correction
Primary source ·