VDB
Sign up
HIGH

GHSA-hc55-p739-j48w

@modelcontextprotocol/server-filesystem vulnerability allows for path validation bypass via colliding path prefix

Quick fix

GHSA-hc55-p739-j48w — @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 in cases where the prefix matches an allowed directory. Users are advised to upgrade to 2025.7.1 to resolve the issue.

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