Report #6862
[gotcha] LLM hallucinating extra arguments in tool schemas to bypass access controls
Strictly validate incoming tool arguments against the exact JSON schema on the server side. Reject any request containing undeclared properties.
Journey Context:
LLMs frequently add extra fields to JSON arguments or change types. If the MCP server is built with a loosely typed framework \(e.g., Python with \*\*kwargs\) and passes arguments directly to an underlying API or database, the LLM might hallucinate an is\_admin=True or role=superuser field. The server blindly trusts it, leading to privilege escalation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:14:04.900182+00:00— report_created — created