{"id":"CVE-2025-53109","aliases":["EUVD-2025-19730","GHSA-q66q-fx2p-7w4m"],"status":"published","title":"Model Context Protocol Servers Vulnerable to Path Validation Bypass via Prefix Matching and Symlink Handling","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.","severity":{"version":"4.0","score":7.3,"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00765,"percentile":0.55762,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-59"],"published":"2025-07-01T20:13:56Z","modified":"2026-10-28T02:30:38Z","fixes":[{"ecosystem":"npm","package":"@modelcontextprotocol/server-filesystem","fixed_in":["2025.7.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@modelcontextprotocol/server-filesystem","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.6.2"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@modelcontextprotocol/server-filesystem","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2025.1.14"},{"fixed":"2025.7.1"}]}]},{"source":"osv","ecosystem":"npm","package":"@modelcontextprotocol/server-filesystem","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.6.2"}]}]},{"source":"osv","ecosystem":"npm","package":"@modelcontextprotocol/server-filesystem","ranges":[{"type":"SEMVER","events":[{"introduced":"2025.1.14"},{"fixed":"2025.7.1"}]}]}],"products":[{"vendor":"modelcontextprotocol","product":"servers"}],"references":[{"url":"https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-q66q-fx2p-7w4m","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/modelcontextprotocol/servers/commit/d00c60df9d74dba8a3bb13113f8904407cda594f","tags":["x_refsource_MISC","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53109","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-q66q-fx2p-7w4m"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53109.json","tags":["advisory"]},{"url":"https://github.com/modelcontextprotocol/servers","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-53109","title":"Model Context Protocol Servers Vulnerable to Path Validation Bypass via Prefix Matching and Symlink Handling","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.","status":"published","published":"2025-07-02T14:30:57.647Z","modified":"2025-07-02T14:50:18.562Z","cvss":[{"version":"4.0","score":7.3,"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","level":"high","assessor":"cna"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:32:49.180768Z"}],"euvd":[{"id":"EUVD-2025-19730","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.","status":"published","published":"2025-07-02T14:30:57Z","modified":"2025-07-02T14:50:18Z","cvss":[{"version":"4.0","score":7.3,"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","level":"high"}],"updated_at":"2026-11-02T20:32:14.284181Z"}],"ghsa":[{"id":"GHSA-q66q-fx2p-7w4m","title":"@modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling","description":"Versions of Filesystem prior to 0.6.3 \u0026 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.\n\nThank you to Elad Beber (Cymulate) for reporting these issues.","status":"published","published":"2025-07-01T20:13:56Z","modified":"2025-07-02T18:56:41Z","cvss":[{"version":"4.0","score":7.3,"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","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:38:48.783737Z"}],"nvd":[{"id":"CVE-2025-53109","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.","status":"published","published":"2025-07-02T15:15:27.67Z","modified":"2026-06-17T09:37:38.537Z","cvss":[{"version":"4.0","score":7.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:11:15.754475Z"}],"osv":[{"id":"CVE-2025-53109","title":"Model Context Protocol Servers Vulnerable to Path Validation Bypass via Prefix Matching and Symlink Handling","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.","status":"published","published":"2025-07-02T14:30:57.647Z","modified":"2026-10-28T02:30:38.864643399Z","cvss":[{"version":"4.0","score":7.3,"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","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T15:44:50.45326Z"},{"id":"GHSA-q66q-fx2p-7w4m","title":"@modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling","description":"Versions of Filesystem prior to 0.6.3 \u0026 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.\n\nThank you to Elad Beber (Cymulate) for reporting these issues.","status":"published","published":"2025-07-01T20:13:56Z","modified":"2025-07-02T18:56:39Z","cvss":[{"version":"4.0","score":7.3,"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","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T15:46:54.055966Z"}]}}
