Last updated November 28, 2026. Lab used mcp-server-git and mcp-server-fetch 2026.11.18 and 2026.11.27 with Git 2.47.3 and Git LFS 3.7.1 on Linux.
MCP servers v2.6.0, released by the Model Context Protocol project on November 27, 2026, fixes eight security advisories in the official mcp-server-git, server-memory, and mcp-server-fetch packages. Upgrade mcp-server-git and mcp-server-fetch to 2026.11.27 and @modelcontextprotocol/server-memory to 2.2.2.
We installed the previous build, 2026.11.18, next to the fixed one and drove both over MCP stdio. Six of the eight advisories reproduced on the old build: a read-only git_status ran a program named in a repository’s config, git_merge replaced a local .env, and two tools returned secrets. The 2026.11.27 build blocked every one of them.
This is the third security release for mcp-server-git in 16 days. Our v2.5.0 report and the best MCP servers guide cover the earlier rounds. No vendor paid for this page.
TL;DR
- v2.6.0 shipped on November 27, 2026 with eight GitHub advisories: six in mcp-server-git, one in server-memory, and one in mcp-server-fetch. One is rated High (CVSS 7.8), five Medium, and two Low.
- On mcp-server-git 2026.11.18, a read-only
git_statuscall ran a program named in the repository’s.git/configthrough Git LFS (Large File Storage). The status output looked normal. - The old build also replaced an ignored
.envduringgit_merge, printed an environment variable in an error, leaked a token through a tab in a remote name, and served another repository’s history under--repository. - mcp-server-fetch 2026.11.18 fetched pages that robots.txt disallowed when the path used a
;parameter or a%5Cbackslash. 2026.11.27 refused both. - On November 28, OSV.dev had none of the new advisories and pip-audit reported no known vulnerabilities for 2026.11.18, so scanners will not flag the old build yet.
What MCP Servers v2.6.0 Fixes
MCP servers v2.6.0 closes eight advisories across three reference servers and finishes two fixes that v2.5.0 left open. Six advisories are in mcp-server-git, including a High severity flaw where Git LFS runs programs named in a repository’s own config. The memory and fetch servers get one fix each.
The maintainers published all eight advisories on November 27, about 20 minutes after the release went out at 09:51 UTC. None has a CVE ID yet. Two of the Git flaws, the git_remote redaction bypass and the git_merge overwrite, only affect builds from 2026.11.4 onward, because the code they live in is that new.

The release also tightens two leftovers from last week. mcp-server-git now repeats its --repository check after a checkout or merge writes the working tree (#5599), and server-filesystem 2.4.1 checks a listed directory before and after the read on Windows (#5600). The notes say a swap made and undone during the read is still not detected on Windows.
These packages are widely installed. On November 28, pypistats showed 462,568 downloads of mcp-server-git and 981,129 of mcp-server-fetch in the last month, and npm counted 181,986 downloads of server-memory in the week of November 20 to 26.
How We Tested 2026.11.18 Against 2026.11.27
We built throwaway repositories and a local web server, then called each tool through the MCP Python SDK client against both builds. Each case used fake secrets and a marker file to prove whether a program ran. Six advisories reproduced on 2026.11.18, both control cases behaved the same on each build, and 2026.11.27 blocked every attack.

We did not test two advisories. GHSA-5pwg-5xfw-x322 needs an attacker to rewrite an alternates file between two Git reads, and GHSA-48j5-hj63-c82c needs a symlink swapped into the memory server’s save path at the right moment. Both are races that a single scripted call does not show reliably.
Git LFS ran our program from a read-only git_status
The setup matched the advisory: Git LFS installed in the user’s global config, a tracked .bin file under the LFS filter, and a [lfs "extension.lab"] section in the repository’s .git/config naming a script as its clean program. We then edited the file and called git_status.
On 2026.11.18 the script ran and wrote the server’s user ID to our marker file. The tool reply was an ordinary status listing with modified: a.bin, so an agent or a person reading it would see nothing unusual. The tool the server marks as read-only was enough to run a program chosen by whoever controlled the repository’s config.
On 2026.11.27 nothing ran. The same call returned an error from Git LFS, “executable file not found in $PATH”, because the fix empties repository-scope LFS program keys before Git runs. A repository that really uses an LFS extension will now see git_status fail through this server, which is the trade the maintainers chose.
git_merge replaced a local .env
Our repository ignored .env and kept a local copy holding DB_PASSWORD=LOCAL-ONLY-keep-me. A diverged branch tracked its own .env. We asked git_merge for a merge commit.
2026.11.18 answered “Merged ‘feature’ into ‘main’ with merge commit 452544b” and the local file now read DB_PASSWORD=from-branch. 2026.11.27 refused with “it would overwrite ignored local files: .env. Nothing was changed.” The local value survived.
Secrets in replies: environment variables and remote tokens
For GHSA-f33v-89w7-f9vc we started the server with a fake LAB_API_KEY and called git_status on a path ending in ${LAB_API_KEY}. The 2026.11.18 error message printed the path with the key value filled in. 2026.11.27 printed the path exactly as sent.
For GHSA-wvv2-676g-r57j we put a credential in the user’s global Git config through a url.<base>.insteadOf rule. A remote named origin had its token redacted on both builds. A remote named origin, a tab, then mirror made 2026.11.18 return the full token, while 2026.11.27 kept it redacted.
The --repository root pointed at another repository
--repository is the flag that confines the server to one directory. We made that directory hold only a .git file pointing at a second repository’s Git directory, then called git_log.
2026.11.18 returned the second repository’s history, including our marker commit message. 2026.11.27 refused, naming the outside Git directory and saying it is outside the allowed repository.
mcp-server-fetch skipped robots.txt for two spellings
Our local site’s robots.txt disallowed /private/. The lab site ran on 127.0.0.1, so we started both builds with --allow-private-ips, since the server refuses loopback addresses by default. A plain /private/report request was refused by both builds.
2026.11.18 fetched /private;jsessionid=1/report and /public%5C..%5Cprivate/report and returned the private page. Java servlet containers drop the ; parameter and IIS reads %5C as a slash, so real origins can serve the disallowed page for either spelling. 2026.11.27 refused both with its robots.txt message.
Who Is Actually Exposed
The serious Git flaws need an attacker who controls a repository’s .git directory, such as an unpacked archive, a shared folder, or a vendored tree. The LFS advisory says a plain git clone of a hostile repository is not enough, because Git does not copy .git/config, and git-lfs ignores these keys in a tracked .lfsconfig.
Some early coverage said an agent that simply clones or opens an untrusted repository was exposed. That overstates it. The realistic paths are agents that unpack tarballs or open shared directories, and setups where another tool or agent can write into .git/config.
Git LFS must also be present. The official mcp-server-git Docker image installs it with git lfs install --system, so container users meet that condition by default. --repository gives no protection against the LFS flaw, because the hostile repository is the allowed one.
The secret leaks matter most for servers holding credentials in the environment or in Git config, which is common on developer laptops. The fetch flaw is a policy bypass rather than a data leak: it lets an agent read pages a site asked autonomous agents to skip.
Scanners Do Not Flag the Old Build Yet
On November 28, 2026 at about 12:25 IST, OSV.dev returned 404 for the new advisories, and an OSV query for mcp-server-git 2026.11.18 listed no vulnerabilities. pip-audit 2.10.1 also reported “No known vulnerabilities found” for both builds, so dependency scanners will not warn you yet.
We saw the same lag after v2.5.0 last week. Until the GitHub advisories carry ecosystem data and sync to OSV, treat the release notes as the source of truth and pin versions by hand. An MCP security tool that inventories which servers your clients launch helps here, since a scan of your own lockfiles will not find a server started by uvx or npx.
Third mcp-server-git Security Release in 16 Days
mcp-server-git has shipped security fixes in v2.4.0 on November 11, v2.5.0 on November 18, and v2.6.0 on November 27, 2026. Each round closed a new way for repository config or paths to escape the server’s rules. Plan on weekly upgrades for as long as researchers keep reporting on this server.
| Release | Date (UTC) | mcp-server-git build | What it addressed |
|---|---|---|---|
| v2.4.0 | Nov 11, 2026 | 2026.11.11 | First git_status code execution fix |
| v2.5.0 | Nov 18, 2026 | 2026.11.18 | Six Git advisories: gc hook, promisor, include, empty filter name, submodule config, index outside repo |
| v2.6.0 | Nov 27, 2026 | 2026.11.27 | Six Git advisories plus memory and fetch fixes, and the two v2.5.0 follow-ups |
One automated news page called v2.6.0 the second consecutive monthly security release for this server. The GitHub release dates show three releases with security fixes inside 16 days.
How to Upgrade and Harden
Pin the fixed versions in the launch line your MCP client uses, restart the client, and confirm the running version. For npm servers on old date versions, name the new version explicitly. Then cut what each server can reach: no shared credentials in its environment, and only trusted repositories under it.
# Python servers launched with uvx
uvx mcp-server-git@2026.11.27 --repository /path/to/repo
uvx mcp-server-fetch@2026.11.27
# npm servers: date versions (2025.x, 2026.x) sort above 2.x, so pin by number
npx -y @modelcontextprotocol/server-memory@2.2.2
npx -y @modelcontextprotocol/server-filesystem@2.4.1 # Windows fix
# Check a repository before an agent opens it
git -C /path/to/repo config --local --get-regexp '^lfs\.(extension|customtransfer|standalonetransferagent)'
- Search every MCP config (
.mcp.json,claude_desktop_config.json, editor settings) for these four packages, since unpinneduvxcaches can keep an old build. - Run mcp-server-git without credentials in its environment, and keep tokens out of global
insteadOfrules on machines where agents use Git. - Do not point the Git server at unpacked archives or shared folders you did not create. If you must, inspect
.git/configfirst with the command above. - Route MCP traffic through a gateway that logs tool calls, so a
git_statusthat suddenly errors after the upgrade is visible.
What is MCP servers v2.6.0?
MCP servers v2.6.0 is the November 27, 2026 release of the official Model Context Protocol reference servers. It fixes eight security advisories: six in mcp-server-git, one in server-memory, and one in mcp-server-fetch, and it narrows a Windows directory-swap gap in server-filesystem 2.4.1.
Which versions fix the v2.6.0 vulnerabilities?
Install mcp-server-git 2026.11.27, mcp-server-fetch 2026.11.27, and @modelcontextprotocol/server-memory 2.2.2. Windows users of the filesystem server need @modelcontextprotocol/server-filesystem 2.4.1. Name the npm versions explicitly if you were on a 2025.x or 2026.x date version, because package managers rank 2.2.2 and 2.4.1 below those.
Is cloning a malicious repository enough to trigger the Git LFS flaw?
No, according to the GHSA-6663-fm5v-gqm5 advisory. The attacker needs control of the repository’s .git directory, as with an unpacked archive, a shared folder, or a vendored tree. Git LFS must also be installed, which the official Docker image does by default.
Did the fixed build break anything in your lab?
Yes, in one case. On 2026.11.27, git_status in a repository whose config names a Git LFS extension returned an LFS error instead of a status listing. That is the intended trade, but repositories that rely on LFS extensions will see failing Git tool calls.
Do vulnerability scanners detect the old mcp-server-git build?
Not yet. On November 28, 2026, OSV.dev did not have the new advisories, an OSV query for mcp-server-git 2026.11.18 returned nothing, and pip-audit 2.10.1 reported no known vulnerabilities. Upgrade from the release notes instead of waiting for a scanner alert.
Related Guides
The next day brought an AI pipeline flaw outside MCP. Our Airflow CVE-2026-120353 lab shows f-string prompts still leaking secrets on the patched common.ai provider.
- Best MCP servers
- mcp-server-git v2.5.0 vulnerabilities
- mcp-server-git git_status vulnerability
- MCP security tools
- AI coding agent security tools
- DBHub MCP server vulnerability
Sources
- modelcontextprotocol/servers release v2.6.0 (Nov 27, 2026)
- GHSA-6663-fm5v-gqm5: mcp-server-git runs programs named by a repository’s own .git/config through the Git LFS filter
- GHSA-3whj-m8jj-x97q: repository root retargeted through a .git pointer
- GHSA-wvv2-676g-r57j: git_remote credential redaction bypass
- GHSA-f33v-89w7-f9vc: repo_path expands environment variables
- GHSA-5pwg-5xfw-x322: concurrent alternates rewrite
- GHSA-qf89-h82f-h5r5: git_merge overwrites ignored local files
- GHSA-48j5-hj63-c82c: server-memory saveGraph temp-path race
- GHSA-g7v6-hfx3-8rv6: mcp-server-fetch robots.txt spellings
- pypistats: mcp-server-git downloads

