mediumresolved

MCP filesystem move race exposes files outside allowed directories

A local attacker can change a source directory after validation. A same-filesystem move then brings an otherwise forbidden file into the permitted tree, where the server can read it.

A local attacker can change a source directory after validation. A same-filesystem move then brings an otherwise forbidden file into the permitted tree, where the server can read it.

This is a maintainer-documented vulnerability disclosure, not evidence of exploitation against a named customer. Affected ranges: @modelcontextprotocol/server-filesystem < 2.3.0; @modelcontextprotocol/server-filesystem >= 2025.1.14, <= 2026.8.31. The maintainer lists patched releases: @modelcontextprotocol/server-filesystem 2.3.0.

Takeaway

Check the deployed package and its configuration against the advisory. Apply the listed fix on a supported release line and verify the trust boundary with an untrusted client or repository.

Sources

mcpghsa-7m4x-rv66-mxhh