MCP filesystem path normalization disagrees with file access
The allowlist comparison removes terminal quote or whitespace characters, while the subsequent filesystem operation uses the original path. A similarly named sibling directory can therefore pass a check intended for the allowed directory.
The allowlist comparison removes terminal quote or whitespace characters, while the subsequent filesystem operation uses the original path. A similarly named sibling directory can therefore pass a check intended for the allowed directory.
This is a maintainer-documented vulnerability disclosure, not evidence of exploitation against a named customer. Affected ranges: @modelcontextprotocol/server-filesystem >= 2025.8.21, <= 2026.8.31; @modelcontextprotocol/server-filesystem >= 1.0.0, < 2.0.1. The maintainer lists patched releases: @modelcontextprotocol/server-filesystem 2.0.1.
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.