The schema was trusted as code
LM Studio lets a local model call tools exposed by MCP servers, and it builds the glue code for those calls from the tool definitions the server advertises. The flaw sat in that hand-off, because the definition was not validated before its fields were turned into code the application then executed. The schema was trusted.
An attacker who controls or can influence an MCP server's tool schema could plant a field whose contents became executable statements once the code was generated. Because the service ran that code under its own account, the result was remote code execution with no authentication step and no user interaction at all. No click was needed.
Scored 9.8, patched quietly
ZDI-26-1121 scored the flaw 9.8 and rated it unauthenticated. It came from a Pwn2Own event, and the flaw was reported to the vendor on 2 June 2026. The vendor fixed it in 0.4.16, but the changelog described the change only as security hardening and did not name a CVE. The note was thin.
The ZDI advisory carries the identifier CVE-2026-133995, but no CVE record has been published against it yet, which leaves the advisory as the only public description of the flaw. Until such a record appears, anyone reading only the release notes would have little reason to treat the update as urgent, since nothing in the note names the danger. Patch notes matter.
The pattern
Tool schemas have become a trusted input channel, and a model-facing server that turns them into code inherits every weakness of the language it generates. The defence is not exotic: treat the schema as hostile data, validate each field, and generate calls through a safe interface rather than by string assembly. Validate before you build.
Log take: The schema is input. A local tool runner that compiles a remote definition into executable code has turned a configuration surface into an attack surface, and the missing validation is the whole bug. The quiet changelog made the same mistake twice, by fixing the code while leaving users unable to judge whether they needed the fix; no exploitation has been reported.
