GitHub Advisory Database
GHSA-q66q-fx2p-7w4m
@modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | @modelcontextprotocol/server-filesystem | All versions up to and including 0.6.2 |
| npm | @modelcontextprotocol/server-filesystem | From 2025.1.14 before 2025.7.1 (fixed in 2025.7.1) |