Report #31528
[gotcha] User input breaking JSON structure or injecting new tool parameters
Use strict schema validation and parameterized queries for tool calls. Never construct tool call JSON strings via string concatenation with user input.
Journey Context:
When an LLM agent decides to call a tool, the framework often builds the JSON payload. If the framework uses string formatting \(e.g., '\{"query": "' \+ user\_input \+ '"\}'\), a user input containing '"\}; alert\('xss'\); \{"' can break out of the intended parameter and inject new ones, or break the tool execution entirely. This is classic SQL injection but for LLM tool orchestration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:18:24.957997+00:00— report_created — created