LM Studio, one of the most popular desktop apps for running language models on your own machine, could be made to execute an attacker’s code without any login. ZDI advisory ZDI-26-1121 (CVE-2026-133995, CVSS 9.8) traces the bug to the way the app handled MCP tool schemas: it built code from a schema it received without checking it first, and that code ran with the rights of the LM Studio process. The Zero Day Initiative published it on 24 November together with four more LM Studio bugs, all from Pwn2Own Berlin and all fixed in version 0.4.16.
A quiet fix in June, the details in November
The timeline matters for anyone who updates slowly. ZDI says the bugs reached the vendor on 2 June. LM Studio 0.4.16 shipped two days later, on 4 June, but its release notes list the change only as “Security hardening”, next to the launch of the Locally iPhone app. No CVE numbers, no hint that an unauthenticated code execution bug was closed. So for 173 days, users had no public reason to treat that update as urgent. Now the advisories are out, and with them a description of where to look: anyone still running a pre-June build is the easy target.
OtterSec researchers Nikolaos Mourousias, Caue Obici and Bruno Halltari are credited with the schema bug. The other four come from Billy, Pan Zhenpeng and Weiming Shi of STARLabs SG.
The five advisories at a glance
| CVE | Bug | CVSS | Login needed? |
|---|---|---|---|
| CVE-2026-133995 | MCP tool schema turned into executed code | 9.8 | No |
| CVE-2026-133994 | Path traversal out of the plugin sandbox, arbitrary files | 9.1 | Yes, high privileges |
| CVE-2026-133992 | Weak credentials on the CLI identity, auth bypass | 8.1 | No |
| CVE-2026-133989 | JSON schema references in chat completion requests fetch attacker URIs (SSRF) | 6.8 | No |
| CVE-2026-133991 | Schema validation errors leak sensitive data to the client | 5.9 | No |
Read together, the list is worse than the single 9.8. ZDI notes that the CLI credential flaw and the two information leaks are meant to be chained with other bugs, and the plugin sandbox advisory (ZDI-26-1120) says that file write also ends in code execution. In other words: one way in without a password, one way to skip authentication, and one way to turn file writes into a foothold.
Who is actually exposed
ZDI does not say which interface the attacker talks to. Our reading of the advisories: the SSRF bug sits in chat completion requests, which is the job of LM Studio’s local API server, and that server is where outside requests and tool definitions arrive. Two defaults in the server settings decide how far the risk reaches. “Require Authentication” is off unless you switch it on, and “Serve on Local Network” opens the API (port 1234 by default) to every device on your network instead of only your own machine.
So the people to worry about most are not casual chat users on a laptop with the server off. They are teams that run LM Studio as a shared model box in the office, developers who turned on network serving for a second machine or a phone, and anyone who runs it headless as a service. Those setups were reachable by anything on the same network, and code would run with the account that runs LM Studio, which often has access to source code, SSH keys and cloud credentials.
Which version is really safe
0.4.16 closes this batch, but it is not the version to aim for. In October, a separate path traversal in the model downloader (CVE-2026-119979, which we covered here) was only fixed in 0.4.22+1. Anyone updating today should go straight to the newest release rather than stopping at 0.4.16. ZDI lists no workaround for installations that cannot be updated, and reports no attacks in the wild.
What to do now
- Check the version on every machine with LM Studio (in the app’s About screen, or
lms versionif you use the CLI) and update to the current release. Anything below 0.4.22+1 is still open to at least one known flaw. - In Developer, Server Settings: switch “Serve on Local Network” off unless you really need it, and switch “Require Authentication” on with a scoped API token if other devices must connect.
- Look for open listeners:
ss -ltnp | grep 1234on Linux,lsof -iTCP:1234 -sTCP:LISTENon macOS,netstat -ano | findstr :1234on Windows. A listener on0.0.0.0instead of127.0.0.1means the network can reach it. - Never forward port 1234 through a router or expose it via a tunnel without authentication in front.
- If a shared LM Studio host ran an old build with network serving on, treat it like any other exposed service: review new files in the user profile and startup items, check installed plugins, and rotate credentials that account could read.
The bigger pattern is one we keep seeing on the AI Security desk: local AI tools grow network features and MCP support faster than their defaults catch up, as with the Dynatrace MCP server that accepted tool calls without a login. “Local” stops meaning “private” the moment a server toggle is on. And a changelog that says only “Security hardening” is a reason to update right away, not to wait for the CVE.



