Skip to content
RED SAG Skills
medium10 pts · first answer countsllm-safetyoutput-handling

Model output rendered as HTML

Your app inserts the model's reply into the page with innerHTML. An attacker gets the model to output <img src=x onerror=alert(document.cookie)>. What is the risk and fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions