mcp-cve-project

CVE-2025-53110 | @modelcontextprotocol/server-filesystem | High |

CVE Information

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.

CVE Breakdown


What is the vulnerability?

Allows access to unintended files when paths share trusted prefixes.

Attack prerequisites / exposure

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.

CVE is because of what bug?

Naive prefix matching for allowed paths

MCP-specific impact / why it matters

Allows access to unintended files when paths share trusted prefixes. The impact is amplified when the server has broad filesystem or repository access.

Where was the bug? (source + snippet)

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.

Fix / Remediation

The patch adds canonical path validation, symlink-aware containment checks, or explicit repository boundary enforcement before executing the affected tool action.

Upstream fix (open source)

Detection / verification