VDB
Sign up
HIGH

GHSA-q66q-fx2p-7w4m

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

Quick fix

GHSA-q66q-fx2p-7w4m — @modelcontextprotocol/server-filesystem: upgrade to the fixed version with the command below.

npm install @modelcontextprotocol/server-filesystem@2025.7.1

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@modelcontextprotocol/server-filesystem
Introduced in: 0

No fixed version published yet for @modelcontextprotocol/server-filesystem (npm). Pin to a known-safe version or switch to an alternative.

npm/@modelcontextprotocol/server-filesystem
Introduced in: 2025.1.14Fixed in: 2025.7.1
Fixnpm install @modelcontextprotocol/server-filesystem@2025.7.1

References