# mcp-server-git: six advisories fixed in 2026.11.27

> Six advisories on the official Git MCP server, one rated high, fixed in release 2026.11.27. Which versions are affected, how to check yours, and how to keep the server inside one repository.

On November 27, 2026 (UTC), the Model Context Protocol project released version 2026.11.27 of `mcp-server-git`, its official Git server for AI agents, and published six security advisories for it. One is rated high: according to the advisory, a repository’s own Git LFS settings could make the server run a program during a read-only tool call. The release notes say the same release fixes eight vulnerabilities across three servers; the six advisories below are the ones for the Git server. [Release notes (archived)](https://web.archive.org/web/20261203023951/https://github.com/modelcontextprotocol/servers/releases/tag/v2.6.0)

**Status: Resolved.** Last checked Dec 2, 2026. The fix is released and every advisory below is published. The project’s repository lists advisories for this server published on Nov 11, Nov 18 and Nov 27, so we keep watching it. We update this page as the project does.

## What happened

The `modelcontextprotocol/servers` repository lists these six advisories for `mcp-server-git`. The project’s release is tagged v2.6.0 in that repository, and the Git server’s own version is 2026.11.27.

| Advisory | Severity | What it says |
| --- | --- | --- |
| [GHSA-6663-fm5v-gqm5](https://web.archive.org/web/20261203024009/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-6663-fm5v-gqm5) | High | The advisory says that with Git LFS installed, a repository’s own configuration can name a program that the server runs during read-only tools such as `git_status` |
| [GHSA-3whj-m8jj-x97q](https://web.archive.org/web/20261203024028/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-3whj-m8jj-x97q) | Medium | The configured `--repository` root can be retargeted through a `.git` pointer, which bypasses the repository limit |
| [GHSA-5pwg-5xfw-x322](https://web.archive.org/web/20261203024046/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-5pwg-5xfw-x322) | Medium | `git_show` can read outside `--repository` after a concurrent rewrite |
| [GHSA-wvv2-676g-r57j](https://web.archive.org/web/20261203024122/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-wvv2-676g-r57j) | Medium | The credential redaction in `git_remote` can be bypassed, exposing credentials from the host user’s Git configuration |
| [GHSA-f33v-89w7-f9vc](https://web.archive.org/web/20261203024140/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-f33v-89w7-f9vc) | Medium | `repo_path` expands environment variables, and the error message discloses their values |
| [GHSA-qf89-h82f-h5r5](https://web.archive.org/web/20261203024104/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-qf89-h82f-h5r5) | Low | `git_merge` can overwrite ignored local files, such as `.env`, despite its no-overwrite-ignore option |

The GitHub page for the high-rated one gives a CVSS score of 7.8. The other five have no CVE number. For the Git server, the release notes also say this release completes a fix from the previous release (GHSA-9vjp-x34c-xg6v), by checking the `--repository` boundary again after a tool writes the working tree.

By their titles, two of the advisories are about a repository’s own files deciding what the server does, three are about a tool returning something the caller should not see, and one is about a protection for ignored files.

## Who is affected

- Anyone running `mcp-server-git` before 2026.11.27.
- For GHSA-6663, machines with Git LFS installed. The release notes say the official Docker image installs it system-wide.
- For GHSA-qf89 and GHSA-wvv2, versions from 2026.11.4. The other four are listed as affecting all earlier versions.
- For GHSA-5pwg, setups that use `--repository` and also give the agent a tool that can write files.
- For GHSA-wvv2, people whose global Git configuration rewrites URLs in a way that embeds a credential.

The advisories do not report any of these being used against a real person.

## How to check if you were hit

1. Find the version. If you installed with `pip`, run `pip show mcp-server-git`. If your MCP configuration runs it with `uvx`, check whether the configuration pins a version or takes whatever `uvx` resolves, and which copy `uvx` has cached. A Docker image has its own version.
2. Find which agents use it. Look at each agent’s MCP settings for `mcp-server-git`, and whether the command includes `--repository`.
3. Check your Git credentials. Run `git config --global --get-regexp 'url\..*\.insteadof'`. The output prints your configured URLs, so do not paste it anywhere. A line with a token or password inside the URL is the setup the release notes describe for GHSA-wvv2.
4. If you merged branches through the server with `git_merge`, compare your ignored files, such as `.env`, against a backup.
5. If the server read repositories you did not write, look at your shell history and recent file changes from those sessions for anything you do not recognise.

## What to do now

1. Upgrade `mcp-server-git` to 2026.11.27 or later, wherever it runs. Restart the agent so it starts the new copy.
2. Start the server with `--repository` to limit it to one repository. The advisories above are about bypasses of that limit, so do this on the fixed version.
3. Move any credential out of a URL in your Git configuration and into a credential helper. If a token was in that URL and the server read untrusted repositories, rotate it.
4. If an agent that uses this server read repositories from unknown sources before upgrading, treat the environment variables of the server process as readable and rotate the secrets in them that matter.
5. Open unknown repositories somewhere your credentials are not.

## What we don’t know yet

- Whether any of these has been used against real people. The advisories describe what is possible, not what happened.
- Whether more advisories will follow. The project’s repository lists three advisory batches for this server in November.
- Whether CVE numbers will be assigned to the five that have none.

## How to stop it next time

**Read what the server can reach before you add it.** [Git MCP server security](https://www.excellent.so/guides/git-mcp-server) lists its tools and the effect of `--repository`. [MCP server security](https://www.excellent.so/guides/mcp-server-security) · [Audit your MCP servers and permissions](https://www.excellent.so/guides/audit-mcp-servers-and-permissions-on-mac) · [AI agent policy template](https://www.excellent.so/guides/ai-agent-policy-template)

## Update log

- **Dec 2, 2026:** First published. Status: Resolved. Fix in mcp-server-git 2026.11.27; six advisories published Nov 27.

## Sources

- [modelcontextprotocol/servers v2.6.0 release notes](https://web.archive.org/web/20261203023951/https://github.com/modelcontextprotocol/servers/releases/tag/v2.6.0)
- [GHSA-6663-fm5v-gqm5](https://web.archive.org/web/20261203024009/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-6663-fm5v-gqm5)
- [GHSA-3whj-m8jj-x97q](https://web.archive.org/web/20261203024028/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-3whj-m8jj-x97q)
- [GHSA-5pwg-5xfw-x322](https://web.archive.org/web/20261203024046/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-5pwg-5xfw-x322)
- [GHSA-wvv2-676g-r57j](https://web.archive.org/web/20261203024122/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-wvv2-676g-r57j)
- [GHSA-f33v-89w7-f9vc](https://web.archive.org/web/20261203024140/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-f33v-89w7-f9vc)
- [GHSA-qf89-h82f-h5r5](https://web.archive.org/web/20261203024104/https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-qf89-h82f-h5r5)

Source: https://www.excellent.so/guides/mcp-server-git-security-advisories-nov-2026
