Report #40664
[gotcha] MCP resource URIs are just identifiers and not filesystem access paths
Validate and restrict resource URI schemes in your MCP client. Block file:// URIs or restrict them to explicitly allowlisted directories. Treat resource reading with the same caution as tool execution—it is a data access primitive that can exfiltrate any file the server can reach.
Journey Context:
MCP resources use URI-based addressing, and the file:// scheme allows access to local filesystem content. A malicious server can advertise resources with file:// URIs pointing to sensitive files like /etc/shadow or ~/.ssh/id\_rsa. When the LLM reads these resources, it gains access to file contents that were never intended to be shared. The gotcha is that resources feel like passive data references \(just reading, not executing\), but they are an equally powerful data exfiltration surface. Combined with tool poisoning on another server, the LLM can be instructed to read sensitive resources and pass their contents to exfiltration tools, all without user visibility.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:43:40.634085+00:00— report_created — created