Loading...
Skip to main content

CVE-2025-53109 — Vulnerability in...

HIGH

@modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling

Published July 1, 2025Updated July 2, 2025Source: osv

Summary

Versions of Filesystem prior to 0.6.3 & 2025.7.1 could allow access to unintended files via symlinks within allowed directories. Users are advised to upgrade to 2025.7.1 to resolve. Thank you to Elad Beber (Cymulate) for reporting these issues.

Advisory Timeline

  • First published July 1, 2025 (468 days ago).
  • Last revised July 2, 2025 — 1 day after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @modelcontextprotocol/server-filesystem to 2025.7.1 or later
npm install @modelcontextprotocol/server-filesystem@2025.7.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: npm (1).

PackageEcosystemAffectedFixed In
@modelcontextprotocol/server-filesystem
npm
All versionsRange-based data available
@modelcontextprotocol/server-filesystem
npm
All versions2025.7.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.2 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2025-53109?
@modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.2/10).
How do I check if my project is affected by CVE-2025-53109?
CVE-2025-53109 affects @modelcontextprotocol/server-filesystem. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-53109 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.2

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-q66q-fx2p-7w4m

Related CVEs

  • CVE-2025-49596
    CRITICAL

    MCP Inspector proxy server lacks authentication between the Inspector client and proxy

  • CVE-2025-53110
    HIGH

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

  • CVE-2026-107375
    HIGH

    JHipster: SQL Injection in the Parameter of JHipster-Generated Reactive (WebFlux + R2DBC) Applicationssort

  • CVE-2026-107384
    HIGH

    MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies