28 Nov 2026
A read-only git status is not a safe review.
2 min read
On 27 November 2026 the official Model Context Protocol git server, mcp-server-git, published a high-severity advisory: GHSA-6663-fm5v-gqm5. A repository's own .git/config can name a program in a Git LFS key, and the read-only git_status tool will run that program as you, while still reporting a clean working tree.
What happened
The server promised it would never run a program named by a repository's own configuration. It left the operator's trusted Git LFS driver in place, and Git LFS then read program-naming keys such as lfs.extension.*.clean from the repository's .git/config. Those keys were not on the list the server cleared. The git_status case needs no network. The advisory is rated High, CVSS 3.1 7.8.
A second advisory the same day, GHSA-wvv2-676g-r57j, covers git_remote. A tab in a remote name skipped credential redaction, so a token stored in the operator's url.*.insteadOf rewrite could be returned verbatim. That issue is rated Moderate, CVSS 3.1 5.3. Both are fixed in mcp-server-git 2026.11.27, in the project's v2.6.0 release.
Who is affected
You are in scope if you run mcp-server-git before 2026.11.27, have Git LFS installed and point the server at a tree whose .git directory someone else supplied: an unpacked archive, a shared folder or a vendored tree. The official Docker image always installs Git LFS. A plain git clone is not enough on its own, because git-lfs ignores these keys in a tracked .lfsconfig file. --repository does not help, because the hostile repository is the one you allowed.
The advisory's author tested package 2026.11.18 on macOS and did not verify the official Docker image, Windows or Linux hosts.
What to do
- Upgrade
mcp-server-gitto 2026.11.27 and pin it in your MCP client. The package is on PyPI. The v2.6.0 release also tells you to upgrade@modelcontextprotocol/server-memoryto 2.2.2 andmcp-server-fetchto 2026.11.27, and on Windows@modelcontextprotocol/server-filesystemto 2.4.1. - Take
git_statusandgit_remoteout of any auto-approve list until you are on the patched release.readOnlyHintis a client hint, not a permission boundary. - Do not point the server at an unpacked archive, a shared folder or a vendored tree until you have read that tree's
.git/config. - If an affected
git_remotemay have inspected an untrusted tree and you store a token in aurl.*.insteadOfrewrite, rotate that token from another machine. - If an affected server with Git LFS was pointed at an untrusted unpacked repository, treat that as code execution and rotate credentials from a different computer. These advisories had no CVE ID at publication, so track the GHSA identifiers and the package version.
Configuration that travels with a repository is code, and “read-only” describes the tool author's intent, not the operating system's.
Filed under: vulnerabilities