AI Security

Is LM Studio Safe? Privacy, the Port 1234 Server, MCP Risks, Its CVE and a Hardening Checklist

LM Studio is safe for one person running local models when it is current, downloaded from lmstudio.ai and left serving on localhost. This guide covers its licence and terms, what the app sends over the network, the local server and its optional API tokens, MCP servers and plugins that run code, the path traversal CVE published in October 2026, model provenance from Hugging Face, a hardening checklist and what changes when a company rolls it out.

Is LM Studio safe? For one person running local models, yes. Chats and documents stay on your computer, its privacy policy says there is no telemetry, and the API server listens on localhost unless you change it. The real risks are specific: authentication on that server is off by default, MCP servers and plugins run code, and versions before 0.4.22 had a flaw that let a crafted model repository plant code.

People who ask whether LM Studio is safe usually mean one of five things. Is the installer genuine? Does the app phone home? Can someone else reach the server it runs? Can a model or a tool harm the computer? And does any of that change when a whole team installs it? We answer each in turn.

Our evidence is LM Studio’s documentation, changelog, terms and privacy policy, the US National Vulnerability Database, VulnCheck’s advisory and Kaspersky’s research, all consulted on 23 November 2026. The current LM Studio release that day was 0.4.28, dated 31 October 2026.

Is LM Studio safe to use? The answer by scenario

ScenarioVerdictWhy
Downloaded models, chat in the app, current versionSafe for most workInference and chat history stay on the device
Version older than 0.4.22Update nowCVE-2026-119979 lets a crafted model repository write files outside the models folder
Local server on localhost, port 1234Safe on a single-user machineOnly programs on the same computer can connect
”Serve on Local Network” with authentication offRiskyAnyone on the network can use, load and download models
MCP servers or plugins from unknown sourcesUnsafeBoth run code with your account’s permissions
Paid cloud models or web searchA hosted servicePrompts go to providers under a zero data retention commitment
Rolled out to a whole departmentNeeds more than the appEach install is configured separately and there is no central record of use

If you are writing a policy for many of these questions at once, our AI agent governance and security handbook sets out the controls an organisation should have in place for local models, tools and agents.

Is LM Studio safe to download and install?

LM Studio is made by Element Labs, Inc., a Delaware company. Unlike Ollama, the desktop app is closed source: the terms treat its source code as a trade secret and prohibit modifying, redistributing or reverse engineering it. Some components around it are public under the MIT licence, including the lms command-line tool, the TypeScript and Python SDKs and the MLX engine for Apple silicon. The point matters for trust. You can read the privacy policy, but you cannot confirm it by reading the code, so network monitoring is the way to check.

Where to get it. Download from lmstudio.ai. On 23 November 2026 the download page offered version 0.4.28 for Windows, and LM Studio also distributes llmster, a headless build of the same core, through a script:

# macOS and Linux
curl -fsSL https://lmstudio.ai/install.sh | bash
# Windows
irm https://lmstudio.ai/install.ps1 | iex

Piping a script into a shell is convenient, but on a managed machine read it first.

Fake download pages. In June 2025 Kaspersky’s researchers described a fake DeepSeek site, promoted through search ads, that offered to install Ollama or LM Studio. Clicking either button ran the real installer while a second process installed malware. The lesson is not that LM Studio is unsafe but that popular local AI tools are now bait. Type the address yourself, and be suspicious of a “DeepSeek” or “local AI” page that hands you an installer.

Updates. On launch, the app checks for new versions on macOS and Windows, according to its offline documentation, which also says the Linux updater was still in progress. Version 0.4.22 added in-app updates for AppImage and .deb installs. Install updates promptly: the one published vulnerability so far was fixed by an update.

Licence for work. LM Studio announced on 8 July 2025 that it was free for use at work, ending the earlier requirement for a commercial licence. The current terms, dated 23 August 2026, grant a licence “solely for Your personal and / or internal business purposes” and exclude reselling or running it as a service for others.

Is LM Studio safe and private? What leaves your computer

LM Studio’s desktop privacy policy, last updated on 19 October 2026, makes two strong statements: messages, chat histories and documents are never transmitted from your system during local use, and the application does not include telemetry or user-specific tracking. Its offline documentation adds that chatting with downloaded models, chatting with documents and running the local server all work without a connection.

The app is not silent on the network, though. Based on the policy and the offline documentation:

ActivityLeaves the machine?What is sent
Chat with a downloaded modelNoNothing, according to the privacy policy
Chat with your documents (RAG)NoFiles are processed locally
Update check at launchYesApp version and build, operating system and your IP address via a CDN
Searching the Discover tabYesRequests to Hugging Face; LM Studio receives anonymised search queries
Downloading a modelYesA download from Hugging Face
Downloading or checking runtimesYesEngine packages such as llama.cpp builds
Cloud models and web search (paid)Yes, including promptsProcessed transiently by providers under zero data retention terms
Google Workspace connectorsYesCovered by the same zero data retention commitment and Google’s Limited Use rules
LM Link between your devicesYes, encryptedEnd-to-end encrypted traffic between devices you own, built with Tailscale
A Hub accountYesAccount details and anything you post, under a separate Hub privacy policy

The short version: metadata and downloads leave the machine, and local conversations do not, unless you choose a hosted feature. For a computer that handles sensitive work, the practical check is a firewall rule. Block outbound traffic from the app, bring model files in through a reviewed path (LM Studio supports sideloading models obtained elsewhere), and confirm that chat still works.

Where prompts do leave. Cloud models and web search are paid features. The policy says requests go to providers operating under zero data retention or equivalent terms, are not kept after completion and are not used for training. That is a reasonable hosted-service promise, but it is no longer local inference. If your reason for choosing LM Studio is that prompts must stay on the device, leave those features unused and record that decision.

A note on the separate agent app. LM Studio’s makers also publish a separate desktop agent, released in July 2026, that can run shell commands and use hosted models. It has its own settings and approval modes, covered in our guide to the agent app. Everything in this article is about the classic LM Studio application.

The LM Studio server on port 1234: authentication is off by default

LM Studio can serve models to other software through OpenAI-compatible endpoints (/v1/chat/completions, /v1/responses), an Anthropic-compatible /v1/messages endpoint and its own REST API under /api/v1/. The documentation’s examples assume http://localhost:1234. You start it from the Developer tab or with lms server start.

Three facts from the documentation decide whether this server is safe.

1. It listens on localhost unless you change it. The “Serve on Local Network” switch, or lms server start --bind 0.0.0.0, binds it to a network address instead. LM Studio’s page on the switch warns that any bind other than 127.0.0.1 exposes the server beyond the machine and recommends enabling authentication.

2. Authentication exists, but it is off. The authentication page says plainly that LM Studio does not require authentication for API requests by default. Since version 0.4.0, released in January 2026, you can switch on Require Authentication and create tokens under Manage Tokens, each with its own permissions. Clients then send Authorization: Bearer <token>. The token is shown once, so store it in a secrets manager.

3. The API can do more than chat. The REST API includes endpoints to list, load, unload and download models. With just-in-time loading switched on, a request that names a model you have downloaded loads it into memory. An unauthenticated caller who can reach the port can therefore use your GPU, fill your disk and pick which model answers.

Other settings worth knowing:

  • Enable CORS. Lets web pages from other origins call the API. Leave it off unless a browser app you trust needs it.
  • Run the server on login. The desktop app can start the server automatically and keep it running from the system tray. Useful, but it means the server is up whenever you are signed in.
  • Headless llmster. Started with lms daemon up, and documented as a systemd startup task on Linux. A server-class install deserves the same review as any other network service.

A quick test from another machine on the network, curl http://<your-ip>:1234/v1/models, should fail to connect. If it returns a list of models and you did not plan to share them, turn off network serving or turn on authentication.

MCP servers, plugins and tool calls: where LM Studio runs code

A model on its own only produces text. LM Studio becomes able to act on your computer through two features, and both deserve the same care as installing software.

MCP servers

Since version 0.3.17 (June 2025), LM Studio has been an MCP host. You add servers in an mcp.json file that follows Cursor’s format, or with an “Add to LM Studio” button on a web page. LM Studio’s own warning is blunt: some MCP servers can run arbitrary code, access your local files and use your network connection, so do not install them from untrusted sources.

The safeguard in the app is a tool call confirmation dialog. When a model calls a tool, LM Studio shows the call and its arguments, which you can review and edit before allowing it. You can also choose “always allow” for a tool, after which the dialog stops appearing. Those exceptions are listed under App Settings, Tools & Integrations. Review that list now and then, because one careless “always allow” on a tool that writes files or sends email removes the human check.

Two more points:

  • Remote MCP servers often carry credentials. The documented example puts a Hugging Face token in a header inside mcp.json. That file is now a secret. Scope such tokens narrowly.
  • MCP through the API is gated by settings. API clients can use servers from your mcp.json only if Allow calling servers from mcp.json is on, which in turn requires authentication. A separate Allow per-request MCPs switch lets callers bring their own servers. If you set allowed_tools, the model sees only those tools; without it, it sees every tool the server offers.

Our walk-through of connecting MCP servers to local runtimes covers the configuration itself. The security question is narrower: every server you add extends what a model, and anyone who can steer the model, can do.

Plugins

LM Studio plugins are JavaScript or TypeScript programs that run on a bundled Node.js runtime (v22.21.1 in the current documentation). They can give models tools, rewrite your input before the model sees it, replace the local model with another text source and add settings screens. Once installed, LM Studio runs them automatically when needed. The plugin documentation makes no statement about sandboxing, so treat a plugin as code running with your permissions. Community plugins are uploaded to LM Studio’s Hub with lms push under a personal or organisation account.

Prompt injection is the multiplier

Tools turn untrusted text into actions. A web page, a document or an MCP tool result can contain instructions that a model follows. The confirmation dialog is the main defence in LM Studio; keep it on for anything that writes, deletes or sends. Our prompt injection prevention guide explains why filtering alone is not enough, and the article on sandboxing agents that execute code covers isolation when tools must run code.

Published LM Studio vulnerabilities

A keyword search of the National Vulnerability Database on 23 November 2026 returned one entry for LM Studio itself.

CVEPublishedWhat it isFixed in
CVE-2026-11997930 Oct 2026Path traversal in the model downloader: backslash-separated file names in a crafted model repository could write files outside the models folder, planting a plugin manifest, install-state.json and mcp-bridge-config.json that ran an attacker’s Python payload on every launch0.4.22 build 1

VulnCheck, which assigned the CVE, scores it 8.7 under CVSS 4.0 and 8.8 under CVSS 3.1, and credits Ariel Fogel of Pillar Security. The attack needs a user to download the crafted repository, but downloading repositories is the app’s everyday job. The CISA coordinator’s assessment attached to the NVD record listed no known exploitation as of publication.

Three observations follow.

The fix shipped two months before the disclosure. LM Studio 0.4.22 was released on 28 August 2026, and its release notes do not mention the fix. Anyone who keeps the app current was protected before the CVE appeared, which is the best argument for prompt updates.

Downloads, plugins and MCP connect. The flaw was in the downloader, but the payload used the plugin and MCP machinery to persist. Each feature that runs code widens what a file-writing bug can achieve.

Engines have their own advisories. LM Studio runs GGUF models on llama.cpp and, on Macs, MLX. In August 2026 the NVD published a set of llama.cpp CVEs, for example CVE-2026-43631, a use-after-free in llama-server. Whether a particular llama.cpp bug reaches LM Studio depends on which code its engine uses, and we found no advisory from LM Studio on that question. Because LM Studio delivers engines as separate runtime downloads, update the runtimes as well as the app.

Are LM Studio models safe? Hugging Face provenance and licences

LM Studio’s built-in downloader fetches models from Hugging Face. That gives you a huge catalogue and also Hugging Face’s trust model: anyone can publish a repository. Our companion article on whether Hugging Face is safe covers the platform’s scanning and its limits.

Who published it. Many LM Studio users download quantised builds from the lmstudio-community organisation, which on 23 November 2026 held 762 models. Its Hugging Face profile describes them as quantised and uploaded by the LM Studio community. Other uploaders range from model vendors to anonymous accounts. Prefer the vendor’s own repository or a well-known quantiser, and check that the base model link points where you expect.

What a model file can do. GGUF and MLX files hold weights and metadata rather than programs, which is safer than older pickle-based formats. They are still parsed by native code, and a GGUF file carries a chat template that shapes how prompts are built. CVE-2026-119979 adds a third concern: the repository’s file names themselves were the attack. A downloader that trusts file names can be turned against you, which is why the fix matters even if you never run an untested model.

Behaviour. A model with no tools can only write text. Give it MCP tools and a poorly behaved or tampered model becomes an operational risk. Test new models with tools turned off before connecting them to anything that acts.

Licence. LM Studio’s terms cover the app. Each model has its own licence, shown on its Hugging Face page; some allow commercial use freely and others restrict it. Our guide to the model artifact supply chain explains how an organisation approves, records and pins model files.

LM Studio hardening checklist

  1. Update. Run 0.4.22 or later; on 23 November 2026 the current release was 0.4.28. Update the llama.cpp and MLX runtimes too.
  2. Download only from lmstudio.ai and verify the address before you click.
  3. Keep the server on localhost. Leave “Serve on Local Network” off unless another machine needs access.
  4. Turn on Require Authentication whenever the server is reachable from anything other than the same computer, and give each client its own token with the narrowest permissions.
  5. Test from another machine. curl http://<your-ip>:1234/v1/models should not answer.
  6. Leave CORS off unless a browser app you trust needs it.
  7. Install MCP servers only from sources you trust, and treat mcp.json as a file containing secrets.
  8. Keep tool call confirmations on. Review the always-allow list in Tools & Integrations.
  9. Treat plugins as software. Install only plugins whose code you have read or whose author you trust.
  10. Prefer known model publishers and check licences before work use.
  11. Avoid paid cloud features on machines where prompts must stay local.
  12. Block outbound traffic on sensitive hosts, sideload approved models, and follow the pattern in our air-gapped deployment guide.

Is LM Studio safe for a company?

The licence is no longer the obstacle: internal business use is allowed. LM Studio’s work page now offers team organisations with single sign-on and lists SOC 2 Type 2 in its trust materials. The page presents them alongside the agent app and its hosted models. For the desktop runner itself, the gaps that matter to a security team are structural.

  • Every install is separate. Server bind address, authentication, MCP servers, plugins and always-allow lists are set on each machine. Nothing in the documentation we read describes a central policy that an administrator pushes to all of them.
  • Tokens are not identities. API tokens control what a client may do, but they are shared secrets created per machine, not users from your directory.
  • No shared audit trail. We found no documented record of who asked what across installations. Regulated teams usually need one.
  • Model choice is local. Any user can download any repository from Hugging Face. That is useful for experiments and hard to square with an approved-model list.
  • Unmanaged laptops add up. A dozen staff each running their own LM Studio, with their own tools and models, is a form of shadow AI even when no prompt leaves the building.

For one person, LM Studio is a careful choice. For a team, its controls need to come from around it: endpoint management, firewall rules, an approved-model list and a shared service where identity and logging live. If you are still choosing a desktop app, our comparison of Jan and LM Studio weighs an open-source alternative, the inference server comparison covers server-class runtimes including Ollama, and the Ollama safety review applies the same questions to Ollama. If your aim is fine-tuning rather than chat, see how Unsloth’s workbench compares with LM Studio.

How VDF AI fits

LM Studio answers how one person runs a model. An organisation also has to answer who may use which model, with which tools and data, and how to show that afterwards. VDF AI does not ship, host or resell LM Studio. It is an on-premises and private-cloud platform for chat, private RAG and governed agents on models you serve yourself, with role-based access control and audit logs on every plan and Microsoft Entra ID single sign-on for on-premises deployments.

At the model layer, VDF AI Router registers self-hosted model servers as on-premises sources, applies allow and deny lists before each call and has an air-gap mode that restricts routing to local models. At the tool layer, VDF AI Agents assigns tools from an MCP-powered registry per agent, so the question of which tools a model may call is settled once by an administrator rather than on each laptop. VDF AI Chat writes an append-only record of each turn, including the identity, model version and any tool calls.

Sources

LM Studio’s own documentation and policies, plus advisories and vulnerability records for the app, as retrieved on 23 November 2026.


Running local models across a team and need access control and audit records around them? VDF AI Router applies an approved-model list before every call; book a demo to see it on your own infrastructure.

Frequently asked questions

Is LM Studio safe to use?

For an individual running downloaded models on their own computer, yes, provided three things hold. The app is current, because a path traversal flaw fixed in version 0.4.22 let a crafted model repository plant code that ran at every launch. The API server stays on localhost, because token authentication exists but is switched off by default. And MCP servers and plugins are installed only from sources you trust, since both run code with your account's permissions.

Is LM Studio safe to download?

The installers on lmstudio.ai are the genuine source, published by Element Labs, the company behind the app. The risk is imitation: in June 2025 Kaspersky described a fake DeepSeek website that offered Ollama and LM Studio installers while quietly running a malware loader in the background. Type the address yourself rather than following ads, avoid repackaged installers on download portals, and on Linux read the install script before piping it into a shell.

Does LM Studio send data to the internet?

Not the content of local chats. Its desktop privacy policy, updated 19 October 2026, says messages, chat histories and documents are never transmitted during local use and that the app has no telemetry. The network is still used: update checks send app version, operating system and your IP address, model searches go to Hugging Face and to LM Studio as anonymised queries, and paid cloud models or web search send prompts to hosted providers.

Is LM Studio open source?

No. The desktop application is proprietary software from Element Labs, licensed under terms that forbid modification, redistribution and reverse engineering, so its privacy claims cannot be checked against source code. Several surrounding pieces are open source under the MIT licence: the lms command-line tool, the JavaScript and Python SDKs and the MLX engine used on Apple silicon. The llama.cpp engine it builds on is also open source.

Is it safe to expose the LM Studio server on my network?

Only with authentication turned on. LM Studio's API, usually at port 1234, accepts requests without a token unless you enable Require Authentication in the server settings, an option added in version 0.4.0. Without it, anyone who can reach the port can chat with your models and call endpoints that load, unload and download them. LM Studio's own documentation advises enabling authentication for any bind address other than 127.0.0.1.

Can I use LM Studio at work?

Yes. LM Studio announced in July 2025 that the app is free for use at work, and its current terms, dated 23 August 2026, license it for personal and internal business purposes. They forbid offering it to others as a service and make the employer the customer when staff use it for their jobs. Free use does not settle security: a company still has to decide which models, MCP servers and plugins are allowed.

Filed under
LM StudioAI securitylocal LLMMCPmodel provenanceAI governance
AI Governance

Is your AI governance audit-ready?

Get a readiness review of your AI controls — policy, oversight, audit trails, and EU AI Act evidence — mapped against what production actually requires.

Keep reading