Research

The model is not your user: three fixed bugs in MCP servers

TL;DR. An MCP server's tools are called by a language model, and anything the model reads can steer it. So every tool argument is untrusted input, even on a server that only runs on your laptop. Here are three bugs that come from forgetting that: an arbitrary file read in mcp-server-kubernetes (CVE-2026-85753), command execution in davinci-resolve-mcp (GHSA-x29h-6rgf-w233), and a fastmcp default that let any website call tools on a localhost server. All three are fixed. Upgrade if you use them, and check your own servers for the same patterns.


Why "it's only called by the AI" isn't a defence

A human types into a normal app. An MCP tool gets its arguments from a model, and the model builds them from whatever is in its context: a pod log, a GitHub issue, a web page, a file in the repo. If an attacker can put text in any of those places, they can suggest tool calls. The model doesn't need to be "jailbroken"; it only needs to follow instructions that look like part of the task.

That turns every string parameter into attacker input. The usual web rules apply again: validate paths, never let input become a command-line flag, and don't treat localhost as private.

1. Arbitrary file read in mcp-server-kubernetes (CVE-2026-85753)

What it does. The install_helm_chart and upgrade_helm_chart tools take a valuesFile parameter, a path to a Helm values file.

The bug. In template mode the server read that file with cat, using the path exactly as the model passed it:

execFileSync("cat", [params.valuesFile])

No check that the path is inside a project folder, no check that it is a values file at all. So valuesFile: "/root/.kube/config" returns the cluster credentials, and /proc/self/environ returns the server's environment variables, API keys included.

How it gets triggered. The advisory's example is a pod log with an instruction in it. The agent reads the log while debugging, then "helpfully" installs a chart with useTemplate: true and the attacker's path. The file contents come back to the model, and from there to wherever the attacker asked them to go.

Fix. Upgrade to 4.0.5 or later. Rated Moderate, CVSS 6.5, CWE-73. Advisory.

The lesson. execFile with an argument array stops shell injection. It does not stop the argument itself from being dangerous. A path from a model needs the same checks as a path from a web form: resolve it, then confirm it stays inside an allowed folder.

2. Command execution in davinci-resolve-mcp (GHSA-x29h-6rgf-w233)

What it does. The conform tool's relink_scalefix action indexes footage folders so clips can be relinked. Folders come in as footageDir or footageDirs.

The bug. The folders went straight into a find call:

spawnSync("find", [...roots, "-iname", "*.mov", "-o", "-iname", "*.mp4"])

There's no shell here, so this looks safe. But find treats any argument starting with - as an expression, and its expressions include -exec (run a command), -delete (delete files) and -fprintf (write a file). A "folder" like -exec followed by a command turns the indexing step into command execution on the editor's machine. This is argument injection (CWE-88): no shell metacharacters needed.

Fix. Upgrade to 4.14.3. The maintainer replaced the find subprocess with Node's own directory walking and now validates every root before indexing (fix commit 24191e2). Rated High, CVSS 8.4. Advisory.

The lesson. Avoiding the shell is necessary but not enough. Any program that parses flags (find, git, tar, curl, ssh) can be steered through a value that starts with -. Reject such values, or better, don't shell out for something the language can do itself. Note that -- isn't a reliable fix for find, as the advisory points out.

3. fastmcp: localhost servers that any website could call (fixed in 4.26.2)

What it does. fastmcp is a popular TypeScript framework for building MCP servers. Its httpStream transport serves a server over HTTP, bound to localhost by default.

The bug. Binding to localhost keeps other machines out. It doesn't keep out the browser on the same machine. In our local tests on 4.24.5, the transport answered every origin with Access-Control-Allow-Origin: * and didn't check the Host header. That meant a web page on any site could run the full MCP handshake against http://localhost:PORT/mcp, list the tools, call them and read the results, all while the developer simply had the tab open. The same setup is open to DNS rebinding. The official Python SDK fixed the same class of bug as CVE-2025-66416.

Fix. Upgrade to fastmcp 4.26.2 (released 11 November 2026). Per the release notes, a server bound to loopback now only answers loopback origins (commit 3a4faf3). We reported this privately on 8 November; it was closed as a duplicate of an earlier report, and the fix credits another researcher. We include it because it's a clean example of the pattern and because users should upgrade.

The lesson. "Localhost only" is about the network, not the browser. A local HTTP transport should check Host and Origin, and should never send wildcard CORS by default.

Check your own server

Five questions we ask on every review:

  1. Paths. Does any tool take a file or folder path? Is it resolved and checked against an allowed root before use?
  2. Flags. Does any tool pass input to a subprocess? Can a value start with -? Is there a shell anywhere in the chain?
  3. Reachability. If the server speaks HTTP, what does it bind to? Does it check Host and Origin? Does it send Access-Control-Allow-Origin: *?
  4. Blast radius. What's in the server's environment and home folder? A file-read bug is only as bad as the secrets it can reach.
  5. Approval. Which tools run without the user clicking "allow"? Those are the ones a prompt injection can use silently.

A quick check for the third one, run against your own local server:

curl -s -i -X OPTIONS http://127.0.0.1:PORT/mcp \
  -H "Origin: https://example.com" \
  -H "Access-Control-Request-Method: POST" | grep -i access-control-allow-origin

If that prints * or https://example.com, any website can talk to your server.

Disclosure

Both advisories were reported privately through GitHub Security Advisories and published by the maintainers after fixes shipped: mcp-server-kubernetes on 4 September 2026 and davinci-resolve-mcp on 19 October 2026. Thanks to both maintainers for quick, careful fixes. About ten more reports are open with other maintainers. We don't name those projects until they're fixed, per our disclosure policy.

Want this done on your MCP server?

We run fixed-price security reviews for teams shipping MCP servers and agent integrations. Every finding comes with a working proof of concept and a fix, verified by a person. Snapshot reviews start at $1,500, and our first three clients get 30% off in exchange for an anonymized case study after fixes ship.