GitHub Advisoryadvisory · npm
GHSA-q66q-fx2p-7w4m @modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling
HIGH
Official page ↗
- Aliases
- CVE-2025-53109
- Ecosystem
- npm
- Packages
- @modelcontextprotocol/server-filesystem
- Severity
- High
- CVSS vector
- 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
- Weaknesses
- CWE-59
- Reviewed
- 2025-07-01
Affected packages
• npm @modelcontextprotocol/server-filesystem: <= 0.6.2 (no fix yet)
• npm @modelcontextprotocol/server-filesystem: >= 2025.1.14, < 2025.7.1 → fixed in 2025.7.1
Description
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.
Related
Alias · CVE (1)
- CVE-2025-53109 Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). vulnerability
Weakness · CWE (1)
- CWE-59 Improper Link Resolution Before File Access weakness
References
- 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