AI Security Atlas › All entries › LLM Application & Output Security

VulnerabilityHigh severity

Unsanitized Output Rendering

Frontends render model output as raw HTML or markdown with remote resources enabled.

Open in the interactive atlas →

Impact

XSS, CSRF, and zero-click exfiltration through the chat UI.

Why this severity

Impact High × Likelihood Medium = High

Impact high: XSS and exfiltration. Likelihood medium: a stored-XSS cookie theft path was demonstrated in Lenovo's support chatbot.

Impact High: Code execution, credential compromise, exposure of regulated or confidential data, irreversible actions, or system-wide failure.
Likelihood Medium: Publicly demonstrated against real products or in peer-reviewed research, or seen in the wild only with a prior foothold such as stolen credentials.

Method: OWASP Risk Rating Methodology

Evidence

Related

Exploited by

Mitigated by

Remediation

  1. Render with a sanitizer that strips scripts, event handlers, and remote images.
  2. Apply a strict Content-Security-Policy on chat surfaces.
  3. Proxy or block external URLs in generated links.

How to verify

Pattern

html = DOMPurify.sanitize(marked(output), { FORBID_TAGS: ['img', 'iframe'] });

Framework mapping

OWASP Top 10 for LLM Applications 2025

MITRE ATLAS

NIST AI RMF 1.0