mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| modelcontextprotocol | servers | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Modelcontextprotocol | Servers |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-vjqx-cfc4-9h6v | mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.345% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Lfprojects
Lfprojects model Context Protocol Servers |
|
| CPEs | cpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Lfprojects
Lfprojects model Context Protocol Servers |
|
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Modelcontextprotocol
Modelcontextprotocol servers |
|
| Vendors & Products |
Modelcontextprotocol
Modelcontextprotocol servers |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries | |
| Weaknesses | CWE-22 | |
| References |
| |
| Metrics |
cvssV4_0
|