Incident report

Reference Filesystem MCP Server Prefix Containment Bypass Reading Sibling Folders

CVE-2025-53110 (published July 2, 2025, disclosed by Cymulate alongside CVE-2025-53109) uncovered a classic directory-prefix containment bug in `@modelcontextprotocol/server-filesystem`. Because path containment checked `path.startsWith(allowedDir)` without appending a trailing path separator, allowing access to `/workspace/app` inadvertently authorized read and write access to sibling paths such as `/workspace/app-secrets` or `/workspace/app_prod`. Agents steered by untrusted prompts could traverse into neighboring sensitive repositories silently. Maintainers patched path containment to compare normalized path segments with trailing directory separators.

Incident record

Reported
Severity
High
Vector
Tool/MCP Abuse
Affected system type
Model Context Protocol (MCP) Filesystem Servers
Reference
CVE-2025-53110
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-53110

Inspect in Interactive Incidents Hub

Defensive lesson

Always append path.sep or use path.relative() containment assertions when validating MCP filesystem tool access boundaries.

Referenced techniques