Skip to content
Embrace The Red·Indexed by this site · Originally published· Event →

Anthropic filesystem MCP Server has a directory access bypass vulnerability

Anthropic Filesystem MCP Server: Directory Access Bypass via Improper Path Validation

AI summary

Anthropic's filesystem MCP Server has a directory access bypass issue due to improper path validation. While reviewing the public source code, the author found that the validatePath function in index.ts only uses startsWith to compare path strings and does not confirm that the path itself is a directory. Therefore, when the allowlist writes to /mnt/finance/data, Claude can also access sibling files or directories starting with that string, such as /mnt/finance/data-archived.

Read originalembracethered.com