Report #62915
[gotcha] Invisible HTML text in webpages hijacks browsing LLM agents
Parse HTML using a text-only extractor \(like Mozilla's Readability\) that strips hidden elements, rather than feeding raw HTML or unfiltered text scraping to the LLM.
Journey Context:
When an LLM agent browses the web, developers often use simple scraping libraries that extract all text. Attackers can embed prompt injection payloads in white text on a white background, zero-font-size text, or hidden divs. A human wouldn't see it, but the LLM reads it and follows the malicious instructions, leading to indirect prompt injection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T12:05:11.553848+00:00— report_created — created