Rightshold™ Sign up

Answers · MCP security

We run the official MCP reference servers from the modelcontextprotocol/servers repo (git, filesystem, fetch, everything) with our coding agent. Which versions have known vulnerabilities, which versions fix them, and is it enough to upgrade?

Last updated

TL;DR: As of November 10, 2026, run the latest releases: mcp-server-git 2026.11.4 and mcp-server-fetch 2026.11.4 on PyPI, and @modelcontextprotocol/server-filesystem 2.2.0 and @modelcontextprotocol/server-everything 2.2.1 on npm. The minimum fixed versions for the published advisories are mcp-server-git 2026.10.28 (a nested .git file could escape --repository confinement), mcp-server-fetch 2026.10.24 (robots.txt skipped on redirects, plus two bypasses of the private-address guard) and 2.0.1 for the two npm packages (four filesystem path-confinement bugs and an everything-server environment-variable leak). Two traps: the npm packages moved from date versions back to semantic versions at 1.0.0 in October 2026, so a pin like 2026.8.31 looks newer than 2.0.1 but is older, unpatched and deprecated; and the fixes for these advisories went only into 2.0.1, with no patched date-based version. Upgrading closes known bugs but doesn't make these servers a security boundary: the repository README calls them reference implementations meant as educational examples, not production-ready solutions, and most of the bugs were reachable by prompt injection, because the model chooses the paths and URLs.

What should I check, step by step?

1. Find what you actually run: check each MCP client config for npx, uvx, pip or Docker entries that start mcp-server-git, mcp-server-fetch, @modelcontextprotocol/server-filesystem or @modelcontextprotocol/server-everything, and note the version each one resolves to.

  1. Upgrade mcp-server-git to 2026.10.28 or later (latest 2026.11.4) and mcp-server-fetch to 2026.10.24 or later (latest 2026.11.4).
  2. Upgrade the npm servers to 2.0.1 or later (filesystem latest 2.2.0, everything latest 2.2.1). Replace any date-based pin such as 2026.8.31: those versions are deprecated and none of them carries the October 2026 fixes.
  3. Pin the exact version you reviewed rather than using latest, and re-read the advisories page before each upgrade.
  4. Start the git server with --repository for the one repository the agent needs, and the filesystem server with only the directories it needs; add --read-only to the filesystem server when the task only reads.
  5. Don't give a filesystem server write access to a directory that a confined git server also serves: the nested .git file advisory names that combination as a realistic way to plant the redirect.
  6. Keep mcp-server-fetch's default private-address guard on (don't pass --allow-private-ips), and add --allowed-hosts when the agent only needs a few sites.
  7. Never run the everything server outside a test machine, and never with GET_ENV_INCLUDE_SECRETS set.
  8. Run these servers inside an OS sandbox or container with only the files and network they need, because confinement inside the server has been bypassed several times.

Which vulnerabilities affect the official MCP git, filesystem, fetch and everything servers, and which versions fix them?

mcp-server-git: CVE-2025-68143 (the git_init tool could create a repository anywhere; fixed in 2025.9.25 by removing the tool), CVE-2025-68144 (argument injection in git_diff and git_checkout, for example a --output flag passed as a ref, could overwrite files) and CVE-2025-68145 (repo_path wasn't checked against --repository), both fixed in 2025.12.18. CVE-2026-27735 (git_add staged files outside the repository via ../ paths) was fixed in 2026.1.14. On October 28, 2026 a further advisory (GHSA-w766-5x43-whvw, CVSS 3.1 5.3) showed that a directory inside the allowed repository holding a .git file with a gitdir: line pointing elsewhere let tool calls read and change another repository; it's fixed in 2026.10.28.

Why is @modelcontextprotocol/server-filesystem 2026.8.31 older than 2.0.1?

The npm reference servers were published with date versions (2025.1.14 through 2026.8.31) and then resumed semantic versioning at 1.0.0 on October 11, 2026. Every date-based version is now deprecated on npm with the message that date-based versions are no longer published. The October 2026 filesystem and everything advisories list no patched date-based version; the fix is 2.0.1. A version check that compares numbers will rank 2026.8.31 above 2.0.1, so check against the advisory ranges, not by which number is bigger.

Are the official MCP reference servers safe to use in production?

The repository README warns that these servers are reference implementations meant to demonstrate MCP features and SDK usage, not production-ready solutions, and that you should apply safeguards for your own threat model. Most of the advisories are path or address checks that were bypassed with an unusual input, and the model supplies those inputs. The security firm that reported the 2025 git flaws (Cyata) showed they could be triggered through prompt injection, such as a poisoned README or issue the assistant reads, and chained with the filesystem server writing a .git/config to run code.

How do I ask Rightshold about this (free, no key)?

Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “Before you run git_commit or git_push through the git MCP server in this task, ask me to approve the exact tool name and arguments, and wait for my yes or no.”

One-click setup

{
  "tool": "request_human_approval",
  "arguments": {
    "action": {
      "tool": "git_push",
      "arguments": "<the exact arguments object you will send>"
    },
    "summary": "Push the agent's commit on branch fix-readme to origin (task read an external issue).",
    "expires_in_minutes": 30
  }
}

Rightshold records approvals and actions for AI agents. It isn't affiliated with the MCP project or the reference servers and doesn't scan local installs. Advisory details and version numbers are from the modelcontextprotocol/servers security advisories, PyPI and npm as checked on November 10, 2026; new advisories may have been published since.

What are the sources?

Related

Not legal advice. JSON · Markdown · All answers

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'