Report #79642
[gotcha] MCP tools that fetch URLs are vulnerable to SSRF, leaking cloud metadata
Run MCP servers in sandboxed environments with restricted network access, and validate/resolve DNS before making HTTP requests to block internal IP ranges \(e.g., 127.0.0.1, 169.254.169.254\).
Journey Context:
An agent with a 'fetch\_url' or 'web\_search' tool seems harmless for reading public docs. But via indirect prompt injection, an attacker can trick the agent into fetching http://169.254.169.254/latest/meta-data/, leaking cloud credentials. The MCP server executes locally, bypassing cloud firewalls and accessing internal networks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:16:37.834482+00:00— report_created — created