INCIDENT MAP

Browse / MCP and Tool Server Flaws / CVE-2025-53110

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

CVE-2025-53110 ยท 2025-07-01 high

Class
MCP and Tool Server Flaws (filed by a model that read the advisory)
Technique
Path traversal and file access
Affected
@modelcontextprotocol/server-filesystem (npm)
Gets past
Path restriction
CVSS
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:H/SI:H/SA:H
EPSS
0.6% chance of exploitation in 30 days

How it works, in short

The filesystem server's allowed-directory check is a plain prefix match, so sibling directories sharing the allowed prefix pass. (Our summary, written by a model. The source text is below.)

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.