MCP filesystem read race bypasses allowed-directory checks
The server validates a file path before reopening it by name. A local process can replace a directory with a symlink between those operations and cause the read to return a file outside the permitted tree.
The server validates a file path before reopening it by name. A local process can replace a directory with a symlink between those operations and cause the read to return a file outside the permitted tree.
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.