{"id":"CVE-2025-53109","published":"2025-07-02T14:30:57Z","modified":"2025-07-02T14:50:18Z","title":"Model Context Protocol Servers Vulnerable to Path Validation Bypass via Prefix Matching and Symlink Handling","vendor":"modelcontextprotocol","product":"servers","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00934,"percentile":0.59049,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-q66q-fx2p-7w4m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/modelcontextprotocol/servers/commit/d00c60df9d74dba8a3bb13113f8904407cda594f","tags":["x_refsource_MISC"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":11.81},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"servers","versions":["< 0.6.4","< 2025.7.01"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-02T14:50:09.361267Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@modelcontextprotocol/server-filesystem","vulnerableRanges":["<=0.6.2",">=2025.1.14, <2025.7.1"],"patched":["2025.7.1"],"from":["GHSA-q66q-fx2p-7w4m"],"provenance":"source"}],"summary":{"text":"The Filesystem reference server in the modelcontextprotocol \"servers\" collection contains a flaw in its path validation, where symlinks inside allowed directories are followed to reach files outside the intended scope. An attacker with network access can reach the server without authentication, but exploitation requires user interaction and a specific configuration in which a symlink within an allowed directory points to an unintended file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:17:51Z"},"euvd":{"id":"EUVD-2025-19730","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-modelcontextprotocol-servers-cve-2025-53109","children":[{"from":"CVE-2025-53109","to":"CVE-2025-53110","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/filesystem/index.ts","src/filesystem/path-validation.ts"],"commits":["https://github.com/modelcontextprotocol/servers/commit/d00c60df9d74dba8a3bb13113f8904407cda594f","https://github.com/modelcontextprotocol/servers/commit/cc99bdabdcad93a58877c5f3ab20e21d4394423d"],"basis":"shared function","functions":["applyFileEdits","expandHome","setRequestHandler","validatePath"]}]}]}}