Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · MCP reference servers

CVE-2025-53109: @modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling

highCVSS 4.0 7.3GHSA-q66q-fx2p-7w4m

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.

Published Jul 1, 2025 · Updated Jul 2, 2025

Affected packages

@modelcontextprotocol/server-filesystem

Ecosystem
npm
Affected
<= 0.6.2
Fixed in
No patched version yet
Check
npm ls @modelcontextprotocol/server-filesystem

@modelcontextprotocol/server-filesystem

Ecosystem
npm
Affected
>= 2025.1.14, < 2025.7.1
Fixed in
2025.7.1
Check
npm ls @modelcontextprotocol/server-filesystem

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More MCP reference servers vulnerabilities

All MCP reference servers entries