CVE-2025-53109 Model Context Protocol Servers Vulnerable to Path Validation Bypass via Prefix Matching and Symlink Handling

High 7.3 Published Updated

Attackers can access unintended files via symlinks in allowed directories of the Model Context Protocol filesystem server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-53109?

CVE-2025-53109 is a high-severity path traversal vulnerability in modelcontextprotocol servers, published on 2 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). Versions of Filesystem prior to 0.6.4 or 2025.7.01 could allow access to unintended files via symlinks within allowed directories. Users are advised to upgrade to 0.6.4 or 2025.7.01 resolve.

Weakness: CWE-59

Which versions are affected by CVE-2025-53109?

4 open source packages ship an affected version, including @modelcontextprotocol/server-filesystem.

PackageAffectedFixed in
@modelcontextprotocol/server-filesystem npmAll versions to 0.6.2None
@modelcontextprotocol/server-filesystem npmAll versions to 0.6.2None
@modelcontextprotocol/server-filesystem npmFrom 2025.1.142025.7.1
@modelcontextprotocol/server-filesystem npmFrom 2025.1.142025.7.1

How do I fix CVE-2025-53109?

Upgrade @modelcontextprotocol/server-filesystem to 2025.7.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-53109 being exploited?

There is no known exploitation of CVE-2025-53109 in the wild and no public exploit code.

Sources

Also known as GHSA-q66q-fx2p-7w4m.

Is CVE-2025-53109 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free