Report #53858
[gotcha] LLM output renders as XSS in the web application
Sanitize LLM output for HTML/JS before rendering in the DOM, just as you would any user input. Treat LLM output as untrusted.
Journey Context:
Developers think of prompt injection as an 'AI problem' \(making the LLM say bad things\). But if the chat UI renders the LLM's markdown/HTML output, an injected
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:53:47.096010+00:00— report_created — created