Report #97368
[gotcha] SSRF and file read via unvalidated MCP resource URIs
Validate resource URI schemes and paths against an explicit allow-list; do not let servers specify arbitrary network URLs; fetch resources through an egress proxy such as Smokescreen. Never echo a resource URI into a tool call or prompt without validation.
Journey Context:
Resource URIs are arbitrary strings. A malicious server can request file:///etc/passwd or http://169.254.169.254/latest/meta-data, and the client fetches it. The spec says servers should validate URIs, but the client is the one that actually performs the read, so the client must enforce the boundary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T04:59:56.080925+00:00— report_created — created