Symlink Attack Affecting @modelcontextprotocol/server-filesystem package, versions <2025.7.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MODELCONTEXTPROTOCOLSERVERFILESYSTEM-10734143
  • published14 Jul 2025
  • disclosed1 Jul 2025
  • creditUnknown

Introduced: 1 Jul 2025

NewCVE-2025-53109  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade @modelcontextprotocol/server-filesystem to version 2025.7.1 or higher.

Overview

@modelcontextprotocol/server-filesystem is a MCP server for filesystem access

Affected versions of this package are vulnerable to Symlink Attack via improper validation of file paths and handling of symbolic links. An attacker can gain unauthorized access to files outside the intended directory by crafting symlinks within permitted directories.

References

CVSS Base Scores

version 4.0
version 3.1