Browse / MCP and Tool Server Flaws / CVE-2025-53109
@modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling
- Class
- MCP and Tool Server Flaws (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Affected
- @modelcontextprotocol/server-filesystem (npm)
- Gets past
- Path restriction
- CVSS
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:H/SI:H/SA:H
- EPSS
- 0.8% chance of exploitation in 30 days
How it works, in short
Allowed-directory checks in the filesystem MCP server can be defeated by prefix matching and symlinks, exposing files outside the permitted roots. (Our summary, written by a model. The source text is below.)
Details
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
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-q66q-fx2p-7w4m
- https://nvd.nist.gov/vuln/detail/CVE-2025-53109
- https://github.com/modelcontextprotocol/servers/commit/d00c60df9d74dba8a3bb13113f8904407cda594f
- https://github.com/modelcontextprotocol/servers
Source: GitHub Advisory Database, used under CC BY 4.0.