Report #65748
[frontier] MCP server is accessing files outside of the directory I intended to allow
Configure MCP Roots: explicitly declare URI roots \(e.g., 'file:///home/user/project'\) that the server may access, and reject resource requests outside these boundaries at the protocol level.
Journey Context:
Early MCP implementations allowed servers to request any resource by absolute path, effectively granting filesystem access. Developers tried path prefix validation, but suffered from directory traversal attacks and symbolic link escapes. Containerization was heavy and broke local tool integration. The Roots capability \(MCP 2024-11-05\) establishes a capability-based sandbox: the client announces allowed roots during initialization, and the server must scope all resource URIs within them. This replaces naive path validation with a protocol-level contract. Crucially, it enables multi-tenant MCP hosting where one server instance serves multiple users with different root sets, and allows fine-grained scoping \(e.g., read-only access to specific directories\). The pattern prevents the 'confused deputy' problem where a server accesses resources on behalf of a user without proper authorization.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:50:20.829669+00:00— report_created — created