Report #56975
[gotcha] Invisible text in copied HTML/Markdown executing indirect prompt injection
Strip all HTML tags, markdown formatting, and CSS styling from user-supplied content before passing it to the LLM. Render and extract plain text only.
Journey Context:
If an LLM reads content from the web \(e.g., a webpage a user pasted or a browser extension scraped\), attackers can hide prompt injections in white text on a white background, zero-font-size spans, or HTML comments. The user doesn't see the injection, but the LLM processes the raw HTML/Markdown and follows the hidden instructions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:07:29.537033+00:00— report_created — created