@modelcontextprotocol/server-filesystem | High || Field | Value |
|---|---|
| CVE / NVD | CVE-2025-53110 |
| EPSS score | 0.005020000 (FIRST EPSS, 2026-06-30) |
| Date (index) | 2025-07-02 |
| Affected product (index) | Filesystem MCP Server (@modelcontextprotocol/server-filesystem) (prefix/path collision bypass) |
| GHSA ID | GHSA-hc55-p739-j48w |
| OWASP MCP Top 10 (2025) | MCP02 — Privilege Escalation via Scope Creep |
| Published / disclosed | 2025-07-01 |
| Ecosystem | npm |
| Component | @modelcontextprotocol/server-filesystem |
| CVSS score | 7.3 HIGH CVSS v4.0 (NVD) |
| CWE | CWE-22 |
| Affected versions | < 0.6.4 / < 2025.7.01 |
| Fixed versions | 0.6.4 / 2025.7.01 |
| Fix status | Patched |
| Exploit status | Public educational demos |
| Notes | Prefix-matching containment bypass can enable unintended file reads/writes via MCP filesystem tools. |
Allows access to unintended files when paths share trusted prefixes.
The attacker needs control over path, repository, or file arguments reaching the affected tool call. In MCP environments this often becomes reachable through prompt-influenced tool arguments, shared configs, or directly exposed tool endpoints.
Naive prefix matching for allowed paths
Allows access to unintended files when paths share trusted prefixes. The impact is amplified when the server has broad filesystem or repository access.
Exact file/function details are not yet captured in the repository source set. Use the advisory and upstream fix link above as the starting point for source-level pinpointing.
Add the vulnerable file/function name and a minimal before/after snippet here once the patch commit is linked.
The patch adds canonical path validation, symlink-aware containment checks, or explicit repository boundary enforcement before executing the affected tool action.
0.6.4 / 2025.7.01 or later as the primary remediation.< 0.6.4 / < 2025.7.01... segments, symlink targets, or repository paths that fall outside the intended workspace.