Is LM Studio safe?

Yes, for one person on one laptop. Chats stay on the device, and the local server listens only on localhost unless someone turns on Serve on Local Network. The risks come with work use: the server takes requests without a token by default, and a model file can carry hidden instructions.

Certiv brings AI Agent Assurance to local model runners like LM Studio: it finds them on company laptops and checks what their models do.

In short

LM Studio security means controlling what a local model runner can do on a company laptop: who can call its local server, which models it loads, and what those models can make tools do. This page covers the server settings, the published findings, and the controls to require before LM Studio runs on work machines.

Who can call the LM Studio server

LM Studio’s local inference server binds to 127.0.0.1, and its docs show it on port 1234. It takes requests without a token unless someone turns on Require Authentication. Serve on Local Network moves it off localhost, so other devices on the same network can call it.

Why a local server matters at work

The server speaks the same API as OpenAI’s, so any coding agent, script, or browser extension on the laptop can send it prompts. LM Studio can also run headless as llmster, a daemon that can start with the machine, so the server can be up when nobody has the app open. Sources: LM Studio’s server docs, authentication docs, and headless docs.

Unvetted weights: two findings that came in through the model

Unvetted weights are model files, and the chat templates inside them, that nobody at the company checked before they ran. Both findings below reached the laptop through a model download.

  1. Jul 2025

    Hidden instructions in a model’s chat template

    Pillar Security Reported to LM Studio June 20, 2025

    A GGUF file carries a chat template that wraps every prompt. Pillar planted instructions in one that fired only on certain requests. The Hugging Face page could show a clean template while the downloaded file held the poisoned one. LM Studio replied that users are responsible for downloading trusted models.

    Read the source
  2. Oct 2026

    A model download that writes outside the models folder

    CVE-2026-119979 CVSS 4.0: 8.7 · affects LM Studio before 0.4.22+1

    The model downloader accepted file names that climbed out of the models directory. A crafted model repository could plant a file that runs an attacker’s Python code every time LM Studio starts.

    Read the source

What Certiv sees on every laptop that runs LM Studio

Certiv Scout runs on each laptop and gives security one view of LM Studio across the fleet: where it runs, which models it holds, where each model came from, and what AI agents do with them. Listing models and recording requests work while LM Studio’s local server runs, or once an admin turns on local engine capture. The source check runs once model provenance is turned on.

Certiv console policy list. Each policy shows a status, Audit, and an intervention. The open menu offers Block, Pause, and Steer.

Product capture. Each policy runs in audit or enforces, with an intervention: Block, Pause, or Steer.

  • Finds LM Studio, in one inventory with the other AI agents and local model runners.
  • Lists the models in LM Studio, GGUF files and MLX folders alike, and the LM Studio version.
  • Checks where each model file came from against Hugging Face, without uploading the file. Each model reads as official, modified, or unverified, so a model with its refusals removed stands out.
  • Records requests to LM Studio’s local server.
  • Stops risky actions a supported AI agent proposes with an LM Studio model, such as deleting files or sending secrets off the laptop, before they run.

What to require before LM Studio runs on company laptops

The LM Studio column is what to set or confirm on each laptop. The Certiv column is what Certiv adds across the fleet.

Control In LM Studio With Certiv
Local server
Keep the server on the laptop Leave Serve on Local Network off. Without it, or a --bind address on lms server start, the server binds to 127.0.0.1. Reports the address each runner listens on, so a server open to the network stands out.
Require a token on every request Turn on Require Authentication (LM Studio 0.4.0 and later) and issue scoped tokens from Manage Tokens. Records every request to the local server and names the app that sent it.
Keep web pages out Leave CORS off. It stays off unless someone turns it on. Names every app that calls the server, browsers included, so an unexpected caller stands out.
Models
Know which models are on each laptop My Models lists one person’s models, stored under ~/.lmstudio/models by default. Lists the models on each laptop, across the fleet.
Check where each model came from Left to the user. LM Studio told Pillar Security that users are responsible for downloading trusted models. Checks each file against Hugging Face and marks it official, modified, or unverified.
Review chat templates Read the template inside the downloaded file. The model’s Hugging Face page can show a different one. Checks each model file, template included, against Hugging Face, so a file with a changed template reads as modified.
Tools and agents
Approve MCP servers Review ~/.lmstudio/mcp.json. LM Studio asks before each tool call, until someone picks always allow. Lists the MCP servers configured for Claude Code and Claude Desktop with a risk score, and checks each MCP tool call a supported agent makes against company policy before it runs.
Check agent actions before they run Agents call the local server, and the SDK’s .act() runs tool calls on its own. Neither asks a person. Checks the actions supported AI agents propose with an LM Studio model against company policy, before they run.
Updates and visibility
Keep LM Studio current Update to 0.4.22+1 or later, which fixes the model downloader flaw. Shows the LM Studio version on each laptop, so versions before 0.4.22+1 stand out.
Know where LM Studio runs The free app has no admin console. LM Studio sells Teams and Enterprise plans, and describes Enterprise with single sign-on. Finds running copies of LM Studio across the fleet.
FAQ

LM Studio security questions

Expand to view common questions.

Is LM Studio safe?
For personal use, yes. Before work use, keep Serve on Local Network off, turn on Require Authentication (LM Studio 0.4.0 and later), and update to 0.4.22+1 or later. Then decide which models people may load, since a model file can hide instructions in its chat template.
Is LM Studio safe and private?
LM Studio says chats and documents never leave the device and the app has no telemetry. It does contact LM Studio for update checks, which send the app version, operating system, and IP address, and it sends anonymized model search queries.
Is LM Studio safe to install?
Install it from lmstudio.ai and keep it current. Versions before 0.4.22+1 have a model downloader flaw, CVE-2026-119979, that lets a crafted model repository plant code that runs at every start. The larger question is which models people install with it.
What are the security risks of LM Studio?
Four, on a company laptop. The local server accepts requests without a token by default. Serve on Local Network opens it to other devices. Model files and their chat templates can carry hidden instructions. And models can drive tools through MCP servers and agents, which act on files and the network.
Does the LM Studio local server need authentication?
Not by default. LM Studio 0.4.0 and later has a Require Authentication setting: turn it on, then create API tokens with scoped permissions in Manage Tokens. Until then, any app on the laptop can call the local inference server, and with Serve on Local Network on, any device on the network can too.
What does Serve on Local Network do in LM Studio?
It binds the LM Studio server to a network address instead of localhost, so other devices on the same network can call its API. LM Studio’s docs recommend turning on authentication when you use it.
Is there an LM Studio Enterprise plan, and what does it cost?
LM Studio has been free for work use since July 2025. It also sells Teams and Enterprise plans; LM Studio describes Enterprise with single sign-on and model and MCP gating. Enterprise pricing is not published, so ask LM Studio for a quote.
How does Certiv secure LM Studio?
Certiv Scout runs on each laptop. Scout finds LM Studio, lists its models and version while its local server runs, and checks where each model file came from once model provenance is turned on. Scout checks the actions supported AI agents propose with those models against company policy before they run, and records the decision and its reason.

Let people run LM Studio. Keep company policy in charge.

See every local model runner and model on your laptops, and the actions agents take with them.

Book a demo