Does this concern you?
- Affected: anyone who connects AI assistants or agents to mcp-server-git through 2026.11.11, @modelcontextprotocol/server-filesystem before 2.4.0, or server-everything before 2.3.1, including date versions of the last two.
- Skip it if: none of these packages appears in your projects, MCP client configurations or containers.
What to do
- Search dependencies and MCP client configurations for the three packages.
- If
npm lsshows server-filesystem or server-everything on a 2025. or 2026. version, you are in the trap: npm marks those deprecated, yet in our npm 11.7.0 test a ^2026.8.31 dependency stayed put afternpm update. Install 2.4.0 and 2.3.1 explicitly, e.g.npm install @modelcontextprotocol/[email protected]; new installs get them by default. - Upgrade mcp-server-git to 2026.11.18 (PyPI).
- Don't: point an agent with an older mcp-server-git at repositories you did not create; some flaws ran commands from read-only tools such as git_diff.
- The advisories report no exploitation or indicators. In repositories an older mcp-server-git opened, look for settings you did not add: gc.recentObjectsHook, filter or merge drivers, includes, core.sshCommand.
What we know – and what we don't
- In the lead advisory, a repository ships gc.recentObjectsHook with a shell command in its .git/config; when the model calls git_merge, "for example after reading instructions in the repository", Git's automatic maintenance runs the command as the server user. The README had called it safe on untrusted repositories.
- Other git fixes: lazy fetching, filter and merge drivers, submodule configuration (all high), and a crafted index that exposed files outside the repository (medium).
- The new filesystem and everything flaws are rated low (2.2 and 3.7). But date versions of the filesystem server also lack the 11 November fixes, rated medium: read_text_file could return files outside the allowed directories.
- Fixed in the main branch on 18 November but not released: a partial Windows fix for filesystem listings, and a repeated --repository check in mcp-server-git.
- The advisories carry no CVE IDs. Not known: how many installations still run a date version.
Why it matters
In our view the trap matters more than the flaws: when an AI assistant writes and reviews dependency changes, a fix ranked below the flaw goes unnoticed, the tool reports it is up to date, and nobody asks why.