Published:

Official Git MCP server: six high-severity flaws in two weeks — a repository's own config could run commands

In short: on November 11 and 18, 2026 the MCP project published eight security advisories for mcp-server-git, its official Git server. Six are rated high (five scored CVSS 7.8). Each time, a repository's own configuration made the server start a program, sometimes from the read-only git_status tool. Version 2026.11.18 is fixed. CVE IDs are still pending.

mcp-server-git is one of the reference servers the MCP project maintains itself. It gives an AI assistant tools such as git_status, git_diff, git_log, git_add and git_merge on a local repository, and it is widely used in development environments and agent setups. The server runs with the privileges of whoever starts it, so whatever Git executes, that user executes.

What went wrong?

Git reads settings from a repository's .git/config, and several of them name a program Git starts on its own. The first advisory (GHSA-6hqx-gqrx-c5r2, November 11) showed that the server left those settings untouched. A repository with core.fsmonitor in its config could run an arbitrary command as soon as the assistant called git_status. The reporter points out that this is exactly the tool clients tend to auto-approve, and that the result looks perfectly normal.

Version 2026.11.11 responded by forcing a set of dangerous settings off and emptying the repository's filter and merge drivers. A week later six new advisories showed how wide this surface is. All are fixed in 2026.11.18:

A medium-severity advisory about an incomplete path check also shipped on November 11. On November 23 an older flaw in the same server received a CVE: CVE-2026-134465 (CVSS 4.0: 5.8), fixed in 2026.10.28.

When are you actually at risk?

A plain git clone is not the problem: clones do not copy .git/config. The risk arises when a repository arrives with its .git directory intact. The advisory lists a project archive, a CI artifact, a backup, a shared network folder, or an unpacked dependency next to your own project. Point an assistant with a vulnerable version of this server at such a folder and it runs whatever that folder prescribes. The CVSS score assumes local access plus a user action. No exploitation in the wild has been reported.

The pattern is not new. According to the reporter, this is the same class that produced CVEs earlier this year for GitHub Copilot CLI (CVE-2026-45033), Goose (CVE-2026-72718) and Hermes Agent (CVE-2026-71963), each through core.fsmonitor. Any agent tool that runs Git on a folder it did not create itself is potentially exposed.

Our advice

(1) Upgrade mcp-server-git to 2026.11.18 or later. Check pinned versions in uvx invocations, containers and client configs. (2) Also upgrade @modelcontextprotocol/server-filesystem to 2.4.0 and server-everything to 2.3.1. Note: if you are still on a date version (2025.x/2026.x), package managers will not offer 2.4.0 as an upgrade, so install it explicitly. (3) Only let an assistant with Git tools work in repositories you cloned yourself. Unpack archives and delivered projects in a separate container or VM. (4) Do not treat "read-only" tools as harmless by default when configuring auto-approval. More in MCP security.

What does this say about the reference servers?

The two releases (v2.4.0 and v2.5.0) together contain fourteen advisories across three servers. That follows the series for fetch and MCP Inspector in October. The release notes are notably candid about what is not done yet: the path check after a writing tool had not been repeated in v2.5.0 (since fixed on the development branch, not yet released), and directory listings are not yet anchored on Windows.

The bigger picture: the reference servers are meant as examples, but in practice they are used as production software. The project now treats them that way too, with weekly security releases. For organizations that means: put them in your update policy like any other dependency, and do not assume "official" means "finished".

Sources

Frequently asked questions

Which version of mcp-server-git is safe?

Version 2026.11.18 or later (PyPI, released November 18, 2026). It fixes the six advisories of November 18; 2026.11.11 fixed the first one via core.fsmonitor. For the other reference servers: @modelcontextprotocol/server-filesystem 2.4.0 and server-everything 2.3.1.

Is a normal git clone from GitHub dangerous?

Not through this route. The malicious settings live in .git/config, which a clone does not copy. The risk is in repositories that arrive with their .git directory intact: a project archive, a CI artifact, a backup, a shared network folder or an unpacked dependency.

Do the mcp-server-git flaws have CVE IDs?

The six high-severity advisories of November 11 and 18 had no CVE ID as of November 24; track them by their GHSA IDs. An older flaw in the same server did get one on November 23: CVE-2026-134465 (path confinement bypass, fixed in 2026.10.28).

Last updated: