CVE-2025-53110: @modelcontextprotocol/server filesystem @modelcontextprotocol/server-filesystem Vulnerability Allows For Path Vulnerability
HIGHCVE-2025-53110 is a HIGH @modelcontextprotocol/server-filesystem vulnerability allows for path vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting @modelcontextprotocol/server filesystem libraries in the npm ecosystem. The issue involves @modelcontextprotocol/server-filesystem vulnerability allows for path validation bypass via colliding path prefix. Remediation is available by upgrading affected packages to version 2025.7.1.
CVE-2025-53110 at a Glance
How to Fix CVE-2025-53110
To remediate this vulnerability, upgrade all affected @modelcontextprotocol/server filesystem dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @modelcontextprotocol/server-filesystem@Latest secure release
npm install @modelcontextprotocol/server-filesystem@2025.7.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @modelcontextprotocol/server-filesystem
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-53110, inspect your project dependencies using npm:
npm ls @modelcontextprotocol/server-filesystem
Analyze the terminal output to locate any version of @modelcontextprotocol/server filesystem in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2025.7.1), your application is affected.
Note: The npm ls @modelcontextprotocol/server-filesystem command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In @modelcontextprotocol/server filesystem, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-53110 Affected @modelcontextprotocol/server filesystem Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@modelcontextprotocol/server-filesystem
|
npm |
≤ 0.6.2
|
|
|
@modelcontextprotocol/server-filesystem
|
npm |
≥ 2025.1.14
< 2025.7.1
|
2025.7.1
|
References
Frequently Asked Questions
What is CVE-2025-53110?
Which @modelcontextprotocol/server filesystem versions are affected?
What version fixes CVE-2025-53110?
Is @modelcontextprotocol/server-filesystem affected?
What CWE is associated with CVE-2025-53110?
How can I check npm dependencies for CVE-2025-53110?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hc55-p739-j48w",
"modified" : "2025-07-02T18:57:22Z",
"published" : "2025-07-01T20:14:00Z",
"aliases" : [ "CVE-2025-53110" ],
"summary" : "@modelcontextprotocol/server-filesystem vulnerability allows for path validation bypass via colliding path prefix",
"details" : "Versions of Filesystem prior to 0.6.3 & 2025.7.1 could allow access to unintended files in cases where the prefix matches an allowed directory. Users are advised to upgrade to 2025.7.1 to resolve the issue.\n\nThank you to Elad Beber (Cymulate) for reporting these issues.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@modelcontextprotocol/server-filesystem"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.6.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@modelcontextprotocol/server-filesystem"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2025.1.14"
}, {
"fixed" : "2025.7.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-hc55-p739-j48w"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-53110"
}, {
"type" : "WEB",
"url" : "https://github.com/modelcontextprotocol/servers/commit/cc99bdabdcad93a58877c5f3ab20e21d4394423d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/modelcontextprotocol/servers"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-01T20:14:00Z",
"nvd_published_at" : "2025-07-02T15:15:27Z"
}
}