Report #75693
[gotcha] LLM tool arguments executed without validation leading to path traversal or unauthorized actions
Treat all LLM-generated tool arguments as untrusted user input. Apply strict server-side validation, authorization, and sanitization \(e.g., path validation, regex constraints\) before executing the tool.
Journey Context:
Developers often assume the LLM will only pass safe arguments to tools because the system prompt asks it to. However, prompt injection can easily trick the LLM into calling read\_file\(path='../../etc/passwd'\) or send\_email\(to='[email protected]'\). The LLM is just a text generator; the execution environment must enforce security boundaries, not the prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:38:40.122398+00:00— report_created — created