Unvalidated Output Injection
High
- Category
- Output Handling
- Content
| **Weak** | Tools return arbitrary dicts, no validation layer | **Anti-patterns:** - Tool handlers that directly execute LLM output - `eval()` or `exec()` on LLM-generated code - No separation between decision (LLM) and execution (code) - Magic method dispatch based on string matching
- Confidence
- 80% confidence
- Finding
- Model output is used without validation or sanitization. Unvalidated output injected into downstream contexts (SQL, shell, HTML) enables injection attacks and arbitrary code execution.
