AI and LLMs · Middle · Question 19 of 75

What is insecure output handling in LLM apps?

Show the answer

Correct answer: Using model output unchecked, e.g. rendering it as HTML

Explanation

Rendering output with innerHTML can cause XSS; passing it to a shell or SQL can cause injection. Treat it like user input.

Further reading

Problem with a question

AI and LLMs · Middle · question 19

Test yourself

Take the AI and LLMs · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz