Report #17226
[gotcha] MCP resource template URIs are just identifiers — they do not pose a security risk
Whitelist allowed URI schemes \(block file://, ftp://, and internal http://\). Validate and sanitize all URI template parameters for path traversal. Implement network-level egress restrictions for MCP server processes.
Journey Context:
MCP resource templates allow parameterized URIs like file:///path/to/\{name\} or https://internal-api/\{resource\}. If the server implementation naively interpolates parameters without validation, an attacker can use path traversal \(../../../etc/passwd\) or scheme switching to read local files or reach internal services. The MCP spec does not enforce URI validation — it is entirely implementation-defined. Many MCP server implementations do string interpolation on URIs with zero sanitization, making SSRF and local-file-read trivially achievable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T04:48:43.879685+00:00— report_created — created