[KongchangAI]
· 2 min read· 1,294 words

MCP Server v2.7.0 Security Update: 32 Vulnerabilities Fixed

MCP Server v2.7.0 Security Update: 32 Vulnerabilities Fixed

MCP Server v2.7.0 fixes 32 security advisories at once, with the git package hit hardest—upgrade ASAP.

The MCP server project has released v2.7.0, fixing 32 security advisories at once—5 critical and 11 high severity—covering core server packages including git, filesystem, fetch, memory, and everything. The vulnerabilities center on repository boundary and filesystem permission bypasses: mcp-server-git alone has 5 critical issues where attackers can use Git extension mechanisms like hooks, filter, submodule, and gpg.program to make tools execute commands outside the `--repository` scope; filesystem fixes read-only directory bypasses and symlink races; memory now returns an explicit error when the read tool's directory is missing, which is a behavior change; fetch and everything are mainly resource-exhaustion DoS. All fixed versions have been published on npm and PyPI, earlier versions remain affected, and it is recommended to pin minimum version bounds and include MCP servers in dependency audits.

The MCP (Model Context Protocol) server project has released version 2.7.0, fixing 32 security advisories in a single release (5 critical, 11 high, 9 medium, 7 low), affecting multiple core server packages including git, filesystem, fetch, memory, and everything. The scale of this update is rare, covering nearly all mainstream MCP server implementations. For developers building AI toolchains with MCP, this is a security upgrade that must be deployed as soon as possible.

rss source: v2.7.0

Why This Update Warrants Immediate Action

The vulnerabilities fixed in this release are not trivial edge cases—they center on bypasses of repository boundaries and filesystem permissions. The mcp-server-git package alone fixes 5 critical vulnerabilities, all following a highly consistent pattern: attackers can use in-repository configuration, symlinks, submodule filters, and similar mechanisms to make tools execute commands or write files outside the scope specified by --repository. For example, GHSA-3r4g-w7c3-fqrx points out that git_merge and git_branch run the repository's own gpg.program, while GHSA-xg98-h8vw-5545 reveals a mismatch where "the check is against a bare repository, but what actually runs is a hidden .git filter."

The common thread across these vulnerabilities: the tool believes it is operating inside a sandbox, but Git's own extension mechanisms (hooks, filter, submodule, attributesFile) allow the execution flow to escape beyond the intended directory. For teams integrating MCP servers into automated pipelines, this means a single malicious repository can escalate to command execution.

Main Server Package Fix List

mcp-server-git: The Worst Hit

mcp-server-git 2026.12.5 contains 5 critical and 9 high-severity vulnerabilities, covering core tools such as git_merge, git_add, git_status, git_checkout, and git_commit. Typical issues include: sparse index causing submodule filter drivers to be executed (GHSA-crwj-9h86-9238), core.worktree not taking effect causing repository-defined filters to run (GHSA-pjvq-3c9r-6h2q), and symlinks leaking files outside the repository through index entries (GHSA-22r3-h6hh-63g4). Additionally, a low-severity DoS issue was fixed where git_merge throws an uncaught StopIteration on forged tree paths.

Why Git Extension Mechanisms Become Escape Channels: By design, Git allows repositories to customize behavior through files like .git/config, .gitattributes, and .gitmodules, where configuration values such as filter.<driver>.clean/smudge, core.fsmonitor, core.sshCommand, gpg.program, and core.worktree are treated by Git as executable commands. The filter= directive in gitattributes combined with filter.<name>.clean can trigger arbitrary commands during git add/checkout; the same applies to submodule submodule.<name>.update=!command. MCP servers originally intended only to read and write within the directory specified by --repository, but once repository content is handed to native Git for processing, these configurations are trusted and executed by Git itself, creating a mismatch of "called inside the sandbox, executed outside the sandbox." Understanding this is the prerequisite for comprehending these 5 critical advisories: the core of the fix is not disabling Git features, but validating repository configuration before invocation, stripping dangerous directives, and ensuring that path resolution and permission checks for things like core.worktree are consistent.

filesystem 2.4.2 fixes --read-only-dir being bypassed on case-insensitive Linux mounts (high severity, GHSA-74fx-4rhc-wgcp), as well as move_file with intermediate symlinks bypassing read-only restrictions, NFC twin symlink races, and related issues. memory 2.2.3 fixes a planted symlink causing the target file's contents to be leaked on save (medium severity) and a refreshLock race condition.

memory also has a notable behavior change: when the directory containing MEMORY_FILE_PATH does not exist, read tools (read_graph, search_nodes, open_nodes) now return an explicit error instead of returning an empty graph as before. This fixes the hidden risk of "typos in paths or mount failures being silently swallowed." After upgrading, you need to verify that the directory has been created.

TOCTOU and Symlink Races: Operations like move_file typically proceed in two steps—first checking whether the target path is within an allowed directory, then performing the actual move. An attacker can replace an intermediate directory with a symlink pointing outside between the check and the execution, causing the final write to land in a read-only directory or outside the repository. This class of issue is collectively known as TOCTOU (Time-of-Check to Time-of-Use). NFC twin symlinks exploit Unicode normalization: systems like macOS apply NFC normalization to filenames, and an attacker can construct two filenames that look identical under NFC/NFD but differ in actual bytes, causing the path hit by the permission check to differ from the path actually opened. Defenses include using O_NOFOLLOW, openat with directory file descriptors, re-verifying the inode via fstat after opening, and applying Unicode normalization uniformly before comparison.

fetch and everything: Denial-of-Service Surface

fetch 2026.12.5's vulnerabilities center on resource exhaustion and parsing robustness: small pages can cause OOM during HTML-to-Markdown conversion (medium severity), robots.txt User-agent grouping causes quadratic memory blowup (medium severity), UTF-8 BOM causes robots.txt to be ignored, and punycode character sets cause the server to hang for about 16 minutes. everything 2.4.1 fixes a memory DoS caused by gzip files served as resources through single-byte HTTP chunks.

robots.txt User-agent Grouping and Quadratic Blowup: robots.txt consists of several User-agent lines followed by Allow/Disallow rules, and a crawler must match all groups relevant to itself. If the parser rescans all rules for each group, the number of groups multiplied by the number of rules produces O(n²) memory and time overhead; an attacker only needs to provide a robots.txt containing a large number of duplicate groups to exhaust the fetch server's memory during parsing. The punycode hang is another class of problem: internationalized domain names encoded via punycode may trigger backtracking or repeated normalization in the parser, and a 16-minute hang means a single request can occupy a worker thread—a classic algorithmic-complexity DoS. Fixes for such vulnerabilities typically include limiting input length, switching to linear parsing, setting parse timeouts, and implementing streaming and memory limits for HTML→Markdown conversion.

Developer Action Recommendations

All fixes have been released in their respective versions: on the npm side, @modelcontextprotocol/server-everything 2.4.1, server-filesystem 2.4.2, server-memory 2.2.3, and server-sequential-thinking 2.2.1; on the PyPI side, mcp-server-fetch, mcp-server-git, and mcp-server-time are all 2026.12.5. The release notes explicitly state that earlier versions remain affected, so it is recommended to pin minimum version bounds rather than performing a one-time manual upgrade.

Additionally, v2.7.0 includes several engineering improvements: npm packages now include a root LICENSE, Docker images exit gracefully on docker stop instead of being force-killed after timeout, git tool input property descriptions are completed, and GIT_AUTHOR_DATE supports all date formats accepted by Git. These changes have a direct impact on day-to-day usage experience.

A Reminder: The Security Maturity of the MCP Ecosystem

The 32 advisories were submitted by @oss-scanner and multiple community researchers, indicating that MCP servers are being systematically reviewed by the security community. This is good for the ecosystem, but it also exposes a reality: servers that "wrap existing system capabilities" such as Git and filesystem have security boundaries far more complex than the interface itself. When integrating MCP tools, developers should include server versions in their dependency audit process and pay attention to whether boundary parameters like --repository and --read-only-dir are actually effective.

One-line Summary

MCP Server v2.7.0 fixes 32 security advisories at once, with the git package hit hardest—upgrade ASAP.

Paragraph Summary

The MCP server project has released v2.7.0, fixing 32 security advisories at once—5 critical and 11 high severity—covering core server packages including git, filesystem, fetch, memory, and everything. The vulnerabilities center on repository boundary and filesystem permission bypasses: mcp-server-git alone has 5 critical issues where attackers can use Git extension mechanisms like hooks, filter, submodule, and gpg.program to make tools execute commands outside the --repository scope; filesystem fixes read-only directory bypasses and symlink races; memory now returns an explicit error when the read tool's directory is missing, which is a behavior change; fetch and everything are mainly resource-exhaustion DoS. All fixed versions have been published on npm and PyPI, earlier versions remain affected, and it is recommended to pin minimum version bounds and include MCP servers in dependency audits.

#MCP server#security update#vulnerability fix#mcp-server-git#Model Context Protocol
Share:

Related articles