Report #30965
[gotcha] Agent performing Server-Side Request Forgery \(SSRF\) through MCP URL-fetching tools
Restrict MCP URL-fetching tools with an allowlist of domains/IPs, block internal IP ranges \(e.g., 127.0.0.1, 169.254.169.254, 10.0.0.0/8\), and ensure the MCP server runs in a network-isolated sandbox, not the internal trusted network.
Journey Context:
An agent is given a \`fetch\_url\` tool to read public webpages. A prompt injection or malicious task instructs the agent to fetch \`http://169.254.169.254/latest/meta-data/\`. Because the MCP server executes the request from the internal network, it returns sensitive cloud credentials to the agent, which the agent then summarizes or exfiltrates.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:21:51.590528+00:00— report_created — created