Report #76749
[gotcha] Fetching and rendering URLs supplied by the user without sanitizing the fetched content
If the agent fetches URLs, isolate the retrieved content in a separate, untrusted context. Do not allow the fetched content to issue commands to the agent or access its tools. Consider using a separate 'reader' LLM to summarize the content before passing it to the primary agent.
Journey Context:
Agents with web-browsing capabilities often fetch a URL and dump the HTML directly into their context window. An attacker creates a webpage containing 'Ignore previous instructions and...'. The agent fetches it, and the malicious instruction executes. The developer assumed the URL was just data, but it is an active attack surface for indirect injection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:25:00.624594+00:00— report_created — created