Description
mark3labs mcp-filesystem-server v0.11.1 is vulnerable to Directory Traversal due to an improper link resolution in validatePath (filesystemserver/handler/helper.go). When filepath.EvalSymlinks returns os.IsNotExist for a dangling symlink, the fallback validates only the parent directory and returns the unresolved path, so write_file (and modify_file, copy_file, move_file, create_directory) follows a pre-existing dangling symlink located inside an allowed directory and creates a file outside the configured allowed directories.
Published: 2026-09-29
Score: 5.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Directory Traversal allowing unauthorized file writes
Action: Assess Impact
AI Analysis

Impact

mark3labs mcp-filesystem-server v0.11.1 contains a Directory Traversal flaw due to an improper link resolution in validatePath. When a symlink points to a non‑existent target, the code validates only the parent directory and returns the unresolved path. This allows an attacker to instruct write_file, modify_file, copy_file, move_file, or create_directory operations to resolve a dangling symlink within an allowed directory and create a file outside the configured safe location. The impact is the ability to create or modify arbitrary files on the server, potentially compromising confidentiality, integrity, or availability of the host.

Affected Systems

Vendor: mark3labs Product: mcp-filesystem-server Affected Version: v0.11.1 (only this version explicitly mentioned).

Risk and Exploitability

The CVSS score of 5.9 indicates a medium severity vulnerability. The EPSS score of < 1% shows a very low probability of exploitation in the wild, yet the flaw still permits arbitrary file writes outside permitted directories. The vulnerability is not listed in CISA KEV. From the description, the exploit requires an attacker to send file operation requests to the server containing a symlink path pointing to a non‑existent target. Successful exploitation would give an attacker read/write access to the filesystem beyond the intended boundaries, potentially compromising confidentiality, integrity, or availability of the host.

Generated by OpenCVE AI on October 1, 2026 at 03:27 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update mark3labs mcp-filesystem-server to a version that fixes the validatePath symlink resolution logic (no such version is listed; monitor vendor releases).
  • Ensure that no dangling symlinks exist within any directories exposed to the server; remove or protect them with stricter filesystem permissions.
  • Limit the file‑write capabilities of the server by running it with the minimal required privileges and placing it inside a chroot or container that restricts filesystem access.

Generated by OpenCVE AI on October 1, 2026 at 03:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 01 Oct 2026 03:45:00 +0000

Type Values Removed Values Added
Title Directory Traversal via Dangling Symlink in mark3labs mcp-filesystem-server

Wed, 30 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-59
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 30 Sep 2026 05:00:00 +0000

Type Values Removed Values Added
Title Directory Traversal via Dangling Symlink in mark3labs mcp-filesystem-server
Weaknesses CWE-22

Tue, 29 Sep 2026 19:45:00 +0000

Type Values Removed Values Added
Description mark3labs mcp-filesystem-server v0.11.1 is vulnerable to Directory Traversal due to an improper link resolution in validatePath (filesystemserver/handler/helper.go). When filepath.EvalSymlinks returns os.IsNotExist for a dangling symlink, the fallback validates only the parent directory and returns the unresolved path, so write_file (and modify_file, copy_file, move_file, create_directory) follows a pre-existing dangling symlink located inside an allowed directory and creates a file outside the configured allowed directories.
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-30T20:11:11.005Z

Reserved: 2026-08-25T00:00:00.000Z

Link: CVE-2026-79534

cve-icon Vulnrichment

Updated: 2026-09-30T19:09:48.578Z

cve-icon NVD

Status : Deferred

Published: 2026-09-29T20:17:26.993

Modified: 2026-09-30T21:17:15.850

Link: CVE-2026-79534

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T03:30:17Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')