Report #86443
[tooling] MCP filesystem server exposes entire host disk or allows directory traversal
Client must configure 'roots' capability listing allowed URI prefixes \(e.g., 'file:///workspace'\). Server must validate every resource access against roots, rejecting paths outside scope including symlinks. Do not rely on OS chroot alone.
Journey Context:
Without roots, filesystem MCP servers execute with full user permissions, creating sandbox escape risks via ../ traversal or symlink attacks. The MCP spec defines 'roots' as client-configured URI boundaries announced during initialization. Servers must implement access validation logic; many open-source implementations skip this, assuming chroot containers provide security. Roots provide portable semantic sandboxing across platforms \(Windows, Unix, cloud\) where OS-level containment varies.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:41:09.031753+00:00— report_created — created