Git merge overwrites ignored local files despite no-overwrite-ignore
GHSA-qf89-h82f-h5r5 · published 2026-11-27
- Severity
- Low
- CVSS score
- Not scored
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 2026.11.27
A caller with low-privilege ability to create or control a source branch in the admitted repository, and to invoke git_merge with fast_forward_only=false, can replace an ignored, operator-maintained .env during a divergent merge. The reproduction creates the source branch with local Git commands before starting the server, so it does not demonstrate unauthenticated branch creation. The CVSS 3.1 base score is 6.5 Medium, with vector . The network attack path requires the operator to expose the shipped --transport streamable-http mode with HOST=0.0.0.0 and a reachable port. …
Upgrade mcp-server-git to 2026.11.27 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Before either fast-forward or merge-commit execution, enumerate paths introduced by the selected commit and reject any path that would replace an ignored, untracked worktree file. Check the working tree and complete incoming tree rather than relying on is_dirty(), which intentionally omits ignored files. Keep command hardening, add a regression test with diverged branches, an ignored local .env, fast_forward_only=false, and an assertion that local bytes remain unchanged, and retain separate fast-forward and ordinary nonignored-file tests.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mcp-server-git | PyPI | >= 2026.11.4, < 2026.11.27 | 2026.11.27 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- Criticalmcp-server-git runs a repo's gpg.program via git_merge and git_branchmcp-server-git
- Criticalgit_add runs submodule filter commands when gitlink mode is not 160000mcp-server-git
- Criticalmcp-server-git: unexpandable sparse index lets submodule filter drivers runmcp-server-git
- Criticalgit: harden_repo ignores core.worktree, so repository-defined filters runmcp-server-git
- Criticalmcp-server-git --repository: checks a bare repo but runs a hidden .git's filtermcp-server-git
- Highgit: index entries under a symlink leak files outside --repositorymcp-server-git
The impact, patch and workaround text comes from the advisory, shortened (published by the MCP reference servers project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.