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?
Discussion 0
Join free to post in the discussion.
Related questions
- Jailbreak or prompt injectionPrompt Engineer
- Customer data in promptsPrompt Engineer
- Top risk in the OWASP LLM listPrompt Engineer
- What "guardrails" meansPrompt Engineer
- Checking before and after the modelPrompt Engineer
- Tool access for an FAQ botPrompt Engineer
- Calling the LLM from the browserPrompt Engineer
- One user sending 50,000 requestsPrompt Engineer