high7.3
CVE-2025-53109
@modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @modelcontextprotocol/server-filesystem | <= 0.6.2 | none recorded |
Affected products
| Product | Affected versions |
|---|---|
| Filesystem | before 0.6.4 |
Versions were read from the advisory text. No structured product data has been published for this record yet.
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/modelcontextprotocol/servers/commit/d00c60df9d74dba8a3bb13113f8904407cda594f
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-q66q-fx2p-7w4m
- https://github.com/advisories/GHSA-q66q-fx2p-7w4m
- https://nvd.nist.gov/vuln/detail/CVE-2025-53109