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 this page
- When
- November 27, 2026
- Component
- mcp-server-git, the official Git MCP server, before 2026.11.27
- What was hit
- A machine running the server, per the advisories: through a repository’s own settings or a tool’s arguments
- Outcome
- ◐The advisories describe no attacks; the sources do not say either way
- Fixed in
- ✓2026.11.27
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)
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.
- Nov 11
Event: An earlier batch of advisories is fixed in 2026.11.11.
- Nov 18
Event: More are fixed in 2026.11.18.
- Nov 27
Fixed or contained: Release 2026.11.27 ships fixes for six more, and the advisories are published.
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 | 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 | Medium | The configured --repository root can be retargeted through a .git pointer, which bypasses the repository limit |
| GHSA-5pwg-5xfw-x322 | Medium | git_show can read outside --repository after a concurrent rewrite |
| 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 | Medium | repo_path expands environment variables, and the error message discloses their values |
| 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-gitbefore 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
--repositoryand 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
- Find the version. If you installed with
pip, runpip show mcp-server-git. If your MCP configuration runs it withuvx, check whether the configuration pins a version or takes whateveruvxresolves, and which copyuvxhas cached. A Docker image has its own version. - Find which agents use it. Look at each agent’s MCP settings for
mcp-server-git, and whether the command includes--repository. - 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. - If you merged branches through the server with
git_merge, compare your ignored files, such as.env, against a backup. - 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
- Upgrade
mcp-server-gitto 2026.11.27 or later, wherever it runs. Restart the agent so it starts the new copy. - Start the server with
--repositoryto limit it to one repository. The advisories above are about bypasses of that limit, so do this on the fixed version. - 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.
- 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.
- 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
- MCP settings
✓Pin to one repository
Start the server with --repository to limit its tools to one repo, on the fixed version.
How → - Dependency review
✓Update on a schedule
The project lists three advisory batches for this server in November. Check its version when you check the rest.
How → - Team policy
✓An approved list
Each server’s publisher, pinned version and token scopes, in one place.
How → - Git configuration
✓Keep credentials out of URLs
Use a credential helper, so no token sits inside a URL in your Git settings.
Read what the server can reach before you add it. Git MCP server security lists its tools and the effect of --repository. MCP server security · Audit your MCP servers and permissions · 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.

