@modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling
High severity
GitHub Reviewed
Published
Jul 1, 2025
in
modelcontextprotocol/servers
•
Updated Jul 1, 2025
Package
Affected versions
<= 0.6.2
>= 2025.1.14, < 2025.7.1
Patched versions
2025.7.1
Description
Published to the GitHub Advisory Database
Jul 1, 2025
Reviewed
Jul 1, 2025
Last updated
Jul 1, 2025
Versions of Filesystem prior to 0.6.3 & 2025.7.1 could allow access to unintended files via symlinks within allowed directories. Users are advised to upgrade to 2025.7.1 to resolve.
Thank you to Elad Beber (Cymulate) for reporting these issues.
References