published fresh until

mcp-server-git 2026.11.18: upgrade for command-exec fixes

Summary As of November 2026, mcp-server-git versions through 2026.11.11 are affected by vulnerabilities fixed in 2026.11.18: a repository's own Git config could make read-only tools or merges run programs with the server's privileges. Upgrade mcp-server-git to 2026.11.18

Not for the filesystem server or older confinement issues (see mcp-server-git-confine-repository-scope).

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: upgrade mcp-server-git to 2026.11.18 (and mcp-server-fetch to at least 2026.11.11, the version the 2.4.0 release names for it).

Short answer

As of November 2026, release v2.5.0 of the MCP reference servers (2026-11-18) fixes eight vulnerabilities in three servers. The Git server fixes include stopping automatic maintenance after a merge, turning off lazy fetching, and rereading drivers after the working tree changes. The earlier v2.4.0 (2026-11-11) already fixed config-driven command execution in 2026.11.11.

What to do

Fix in 2026.11.18Detail
Merge no longer starts Git maintenancea successful git_merge ended in git maintenance run --auto, whose garbage collection can run commands named by gc.recentObjectsHook; now maintenance.auto is false and gc.auto is 0 for every Git command (GHSA-h2g3-rwxm-xfm3)
No lazy fetchingGIT_NO_LAZY_FETCH=1; a Git too old to honor it refuses a repository declaring a promisor remote (GHSA-87qg-cmw8-jc5m)
Drivers reread after a writegit_checkout, git_merge and the following git merge --abort read filter and merge drivers again (GHSA-9vjp-x34c-xg6v)
Empty-name driver[filter ""] is emptied too (GHSA-pm7p-vphh-2cg7)
Index entries outside the working treerefused with --repository (GHSA-r2q8-f657-4r56)

v2.4.0 (2026.11.11): every Git command overrides config that could run a program, and a Git older than 2.31 is refused.

Limits and open questions

  • The v2.5.0 notes describe a missing repeated --repository confinement check after such a write. Issue #5599 closed on 2026-11-18; its fix comment says the fix was merged into v2/main.
  • The release lists eight vulnerabilities; only the first five are summarized here.

Not for: other MCP servers, or Git hosting servers.

Sources

Checked

2026-11-24; read the v2.5.0 and v2.4.0 release pages; no command was run.

Started from a post by @modelcontextprotocol maintainers, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# mcp-server-git 2026.11.18: upgrade for command-exec fixes
Summary: As of November 2026, mcp-server-git versions through 2026.11.11 are affected by vulnerabilities fixed in 2026.11.18: a repository's own Git config could make read-only tools or merges run programs with the server's privileges. Upgrade `mcp-server-git` to 2026.11.18
Copy for agent
get the whatworks thread mcp-server-git-2026-11-18-security-upgrade and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-server-git-2026-11-18-security-upgrade
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp