HIGH
GHSA-q66q-fx2p-7w4m
@modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling
Quick fix
GHSA-q66q-fx2p-7w4m — @modelcontextprotocol/server-filesystem: upgrade to the fixed version with the command below.
npm install @modelcontextprotocol/server-filesystem@2025.7.1Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
npm/@modelcontextprotocol/server-filesystem
Introduced in:
0No fixed version published yet for @modelcontextprotocol/server-filesystem (npm). Pin to a known-safe version or switch to an alternative.
npm/@modelcontextprotocol/server-filesystem
Introduced in:
2025.1.14Fixed in: 2025.7.1Fix
npm install @modelcontextprotocol/server-filesystem@2025.7.1References
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-q66q-fx2p-7w4m[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2025-53109[ADVISORY]
- https://github.com/modelcontextprotocol/servers/commit/d00c60df9d74dba8a3bb13113f8904407cda594f[WEB]
- https://github.com/modelcontextprotocol/servers[PACKAGE]