Ingenious AI

Ingenious AI · Agent infrastructure · Free self-check

Can your MCP file tool be talked out of its folder?

CVE-2026-75612 (yt-mcp, the YouTrack MCP server for Claude Code, before 1.18.1) failed on both sides of the filesystem in one small server: add_attachment accepted a caller-controlled file_path, checked only that the file existed, and read any file the server process could reach for exfiltration via an issue upload — while get_project_health interpolated a caller value into snapshot filenames, allowing traversal writes outside the snapshots directory. The 1.18.1 fix is path canonicalization plus confinement. This page turns that lesson into a battery any MCP author can run.

What this does — and does not do

Does: read a tools/list (or tool-definition JSON) you paste, identify the file-touching tools, and judge each one from its own schema: does it take a caller-controlled path or filename, and does anything — a root/allowed-directory statement, a pattern, an enum — claim to confine it? It then generates the traversal battery for your root: bare and deep dotdot, absolute paths, URL-encoded traversal, symlink escape, caller-controlled write filenames and null-byte confusion, each labelled with the check it defeats and a pass/fail condition.

Does not: connect to, call or probe your server. The per-tool verdict is a reading of the declared schema — a schema can claim confinement the code does not enforce (the CVE's server believed it checked paths too). The battery is the proof; this page generates it and states its pass condition, and running it against your own server is your step.

Paste your server's tool definitions

The facts behind this check

The yt-mcp case is the complete confinement syllabus in one advisory: a read tool that checked existence instead of confinement, and a write tool that built a filename out of caller input. Either alone is a CVE; together they are read-anything, write-anywhere from a prompt-injected client. The fix in 1.18.1 — canonicalize the path, resolve it, then verify the result sits inside the allowed directory, on both the read and the write side — is the whole standard, and it is testable in minutes with the battery this page generates.

Frequently asked questions

What does this tester check in my tool definitions?

It reads the tools/list or tool-definition JSON you paste, finds the file-touching tools, and judges each one from its own schema. It looks for caller-controlled paths or filenames and for any confinement signal, such as a root or allowed-directory statement, a pattern, or an enum.

How does the traversal battery work?

Once you give the intended root directory, the page builds test cases for that root: bare and deep dotdot paths, absolute paths, URL-encoded traversal, symlink escape, caller-controlled write filenames and null-byte confusion. Each case is labelled with the check it defeats and a pass or fail condition.

Does this page connect to my MCP server?

No. It never connects to, calls or probes your server. The analysis runs locally in your browser on the JSON you paste, and running the generated battery against your own server is a step you take yourself.

Can a clean verdict prove my file tools are confined?

No. The verdict is a reading of the declared schema, and a schema can claim confinement that the code does not enforce. The page says this plainly: the battery is the proof, because it tests what the server actually does with a path that tries to leave the root.

What should I do if a tool is flagged?

Treat the flag as a prompt to check the code behind that tool. The fix described on this page is to canonicalize the path, resolve it, then verify the result sits inside the allowed directory, on both the read side and the write side, as the 1.18.1 fix did.

Sources

CVE-2026-75612 — yt-mcp (YouTrack MCP server), fixed in 1.18.1 via path canonicalization + confinement (hook dated 2026-11-19 in the Ingenious AI unicorn research log, 2026-11-27).

Running agent stacks in production? TrustGate watches the MCP servers your agents actually run. This page is a one-off self-test battery, not monitoring.

← Back to Ingenious AI home