⌁AI·CYBER·BRIEF▌
Vulnerabilities7 min read

Official MCP Git server could run programs named in a repo's settings — update to 2026.11.27

The MCP project's v2.6.0 release fixes eight flaws in its Git, Memory and Fetch servers, including a high-severity Git LFS issue that an earlier patch missed.

On November 27, 2026, the Model Context Protocol (MCP) project shipped release v2.6.0 of its official reference servers, fixing eight vulnerabilities in the Git, Memory and Fetch servers. The most serious, rated High (CVSS 7.8), lets a booby-trapped repository make the Git server run programs on your machine, even through a "read-only" tool. If you connect AI assistants or coding agents to mcp-server-git, update it to 2026.11.27. The November 18 update is not enough.

What happened, in plain English

MCP is a standard way to plug tools into AI assistants such as Claude Desktop, Cursor or VS Code agents. An "MCP server" is a small helper program that gives the AI a set of abilities. The official Git server, mcp-server-git, lets an assistant check a repository's status, read diffs, look at history and make commits on your behalf.

Git LFS (Large File Storage) is a common Git add-on for big files such as images or model weights. It works by running helper programs whenever Git reads or writes certain files. The problem is that Git LFS will also run helper programs named in a repository's own local settings file (.git/config).

So if someone hands you a repository folder with a tampered settings file, and Git LFS is installed on the machine, then simply asking your AI assistant "what's the status of this repo?" could start a program of the attacker's choosing, with your user's permissions. Think of a USB stick that runs something the moment you browse it.

This is not a new kind of problem. The MCP maintainers had already hardened the Git server against similar settings-file tricks in the v2.5.0 release on November 18. But that fix did not cover Git LFS's program settings, so version 2026.11.18 is still affected. The other seven fixes in v2.6.0 are lower-severity issues: ways to read data outside the repository the server is meant to stay in, leak credentials or environment variables, overwrite an ignored .env file, or loosen file permissions.

There are no reports of attacks in the wild. The advisories do not mention exploitation.

Are you affected? What to do now

Who is affected

  • Anyone running mcp-server-git (Python/PyPI) before 2026.11.27, including 2026.11.18.
  • The high-severity issue needs three things together: an attacker controls the repository's .git folder (for example an unpacked archive, a shared network folder or a vendored source tree); Git LFS is installed system- or user-wide; and an AI client calls any Git tool on that repository. The advisory says a plain git clone of a hostile repo is not enough on its own, because cloning does not copy .git/config.
  • The advisory notes that the official Docker image installs Git LFS system-wide, so container users meet the LFS condition by default.
  • @modelcontextprotocol/server-memory 1.0.0–2.2.1, mcp-server-fetch 2026.10.10–2026.11.18, and @modelcontextprotocol/server-filesystem on Windows up to 2.4.0 have lower-severity fixes in this release.
  • If you only use hosted AI tools and have never set up MCP servers yourself, you most likely have nothing to do.

How to check

  • Open your AI client's MCP configuration (for example claude_desktop_config.json, .cursor/mcp.json or your VS Code MCP settings) and look for mcp-server-git, server-memory, mcp-server-fetch or server-filesystem.
  • For Python installs, run pip show mcp-server-git (or check the version pinned in your uvx command).
  • For npm packages, check the version pinned after the @ in your npx command.

What to do, in order

  • Update mcp-server-git to 2026.11.27 and restart your AI client so it starts the new process.
  • Update mcp-server-fetch to 2026.11.27, @modelcontextprotocol/server-memory to 2.2.2, and on Windows @modelcontextprotocol/server-filesystem to 2.4.1.
  • Pin exact npm versions. The release notes warn that the new 2.x version numbers rank below the old date-style versions (such as 2026.x), so npm update or an unpinned npx may not offer them. Write the version out, for example @modelcontextprotocol/server-memory@2.2.2.
  • If you use a Docker image, confirm it actually contains 2026.11.27 before relying on it. We could not confirm from official sources that the image has been rebuilt.
  • Until you have updated, don't point the Git server at repository folders you didn't create or clone yourself, such as downloaded archives or shared drives.
  • Where agents work on untrusted code, run MCP servers in a throwaway container or VM with no access to your real credentials.
  • Review global Git settings that embed tokens in URLs (url.<...>.insteadOf rewrites). One of the medium-severity fixes involves a way for such a token to be printed unredacted.

The expert view

The root cause is one we have seen repeatedly with tools that wrap Git: repository-local configuration is code. Git, and extensions like Git LFS, let .git/config name programs to run as filters, transfer agents and hooks. Any tool that runs Git commands on a directory it doesn't fully trust inherits that execution surface. The v2.5.0 hardening tried to neutralise this with a denylist of dangerous keys, overriding filter, merge and maintenance settings at runtime. The LFS program keys simply weren't on the list. Denylists fail exactly like this: the next extension that reads its own config is the gap.

The attack chain is short. Get a tampered .git folder onto the victim's machine, then wait until the victim's AI agent calls a routine tool. The "read-only" label on git_status gave false comfort, because Git LFS's "clean" step runs while Git computes status. Per the advisory, setting GIT_LFS_SKIP_SMUDGE=1 alone does not help for that reason. The --repository restriction doesn't help either: it limits which repository the server opens, not what that repository's config can do. The fix empties the repository-scope LFS program keys and adds further overrides for SSH, askpass and credential-helper settings.

Severity in context. The CVSS 3.1 score is 7.8 (vector AV:L/AC:L/PR:N/UI:R), which is fair. Code execution is total, but the attacker must already place a crafted .git directory locally and a user or agent must act on it. That is a real but narrow precondition, more relevant to developers who download project archives, build servers that process third-party trees, and agents working across shared folders. No CVE has been assigned. The advisory states it was tested only on macOS (git 2.54.0, git-lfs 3.7.1); Linux, Windows and Docker were "not verified". It also notes the report was submitted with AI assistance.

The other advisories show the same pattern of guards rather than isolation. They cover a .git pointer file that retargets the configured repository root (Moderate, 5.9), a race on Git's alternates file that reads objects from a sibling repository (Moderate, 6.5), GitPython expanding environment variables in repo_path and echoing their values in errors (Moderate), and the tab-character trick that defeats git_remote credential redaction (Moderate, 5.3). The repo_path issue matters most for AI deployments: prompt injection can steer the tool's arguments, which can turn into reading an API key from the server's environment. Several advisory bodies disagree with their own metadata on patched versions or severity, so treat the per-issue scores as provisional.

The broader lesson for teams adopting MCP is that "official reference server" does not mean "safe to point at untrusted input". These servers run with your full user rights. Two security releases in nine days are a sign of active scrutiny, much of it now AI-assisted, and should be read as a reason to sandbox, not to relax.

Still unknown: whether the official Docker image has been rebuilt with the fix, whether CVEs will be assigned, and whether behaviour differs on Linux and Windows.

Official sources

Get the daily brief

AI + security signal by email: headlines, a two-line summary, a link. No noise, no spam.

How often