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

GuardrailFixes high risks

Output Encoding & Strict CSP

Model output is sanitized and rendered under a Content-Security-Policy that forbids remote resource loads.

Open in the interactive atlas →

Impact

Neutralizes markdown-image and HTML exfiltration channels regardless of injection success.

Why this severity

Guardrails take the highest severity of the risks they mitigate: Unsanitized Output Rendering (High), Output-Rendered Data Exfiltration (High).

Method: OWASP Risk Rating Methodology

Related

Mitigates

Remediation

  1. Sanitize output server-side and again at render.
  2. Set img-src and connect-src to self plus a vetted allowlist.
  3. Show link destinations before navigation.

How to verify

Pattern

Content-Security-Policy: default-src 'self'; img-src 'self' data:; connect-src 'self'

Framework mapping

OWASP Top 10 for LLM Applications 2025

MITRE ATLAS

NIST AI RMF 1.0