AI Security

Is ComfyUI Safe? Custom Node Malware, ComfyUI-Manager Settings, Port 8188, CVEs and a Hardening Checklist

ComfyUI itself is open source, listens only on your own computer by default and works offline, so for one person with a current version it is safe. The risk is everything you add to it: custom nodes are ordinary Python with your permissions, and malicious ones have stolen passwords and mined cryptocurrency. This guide covers the documented incidents, ComfyUI-Manager's security levels, the Desktop and portable builds, the server and its listen flag, published CVEs, model file formats, Partner Nodes that send data out, a hardening checklist and company use.

Is ComfyUI safe? The core program is, for one person on one computer. ComfyUI is open source, listens only on 127.0.0.1 by default and works offline. The danger is what you add: custom nodes are third-party Python with your account's permissions, and malicious ones have stolen passwords and mined cryptocurrency. Keep ComfyUI updated, install few vetted node packs, and never expose port 8188 without authentication.

ComfyUI is a node-based tool for running image, video and audio models locally. Its design is what makes the safety question unusual. Almost everything people love about it, from new model support to upscalers and face tools, arrives as community node packs, and every pack is code that runs on your machine. So the answer depends less on ComfyUI and more on how you extend it.

This guide uses ComfyUI’s security policy and source code, the ComfyUI-Manager documentation, Comfy Org’s blog and documentation, the National Vulnerability Database, GitHub advisories and research from Censys, all consulted on 23 November 2026. The newest GitHub release that day was ComfyUI v0.46.0, published on 18 November 2026, with tags up to v0.46.2 by 20 November.

Is ComfyUI safe to use? The answer by scenario

ScenarioVerdictWhy
Current ComfyUI, built-in nodes only, default settingsSafeBinds to 127.0.0.1:8188; core downloads nothing unless asked
A few popular, maintained node packs from the Comfy RegistryAcceptable with careRegistry rules ban eval, runtime pip install and obfuscation, and malicious packs have been removed
Node packs installed from random Git URLs or archivesRiskyNo review; the code runs with your permissions
Workflows downloaded from the internetCheck firstA workflow can pull in missing nodes, and several 2026 CVEs were triggered by crafted workflows
--listen on a home or office networkRiskyNo login; any device on the network can queue jobs and upload files
Port 8188 reachable from the internetUnsafeMining campaigns scan for exposed instances and install malicious nodes
Partner Nodes such as GPT Image or KlingA hosted servicePrompts and images go to third-party providers
One GPU server shared by a teamNeeds more than ComfyUINo accounts, roles or audit trail

If you are setting rules for local AI tools across a team, our AI agent governance and security handbook covers the policy side: approved software, model sources, tool permissions and records.

Is ComfyUI safe to download and install?

ComfyUI is published by Comfy Org under the GPL-3.0 licence, with about 148,000 stars on GitHub. The repository now lives at github.com/Comfy-Org/ComfyUI. Its security policy states the threat model plainly: the server binds to 127.0.0.1 by default, the user installed through a supported channel, PyTorch and other dependencies are at recommended versions, and no untrusted custom nodes are installed. Stay inside those assumptions and the core is well defended.

The supported channels differ in how much they manage for you.

Install methodUpdatesWhat to watch
Comfy Desktop (Windows, macOS)Checks shortly after launch and every 10 minutes; installs automatically by defaultAnalytics and crash reports are opt-in; installs under %LOCALAPPDATA%\Comfy-Desktop on Windows
Windows portableManualSelf-contained Python and PyTorch; launch flags go in the run_*.bat file; the docs steer regular users to Desktop instead
Manual install or comfy-cliYou run git pull and manage Python packagesYou own the PyTorch version, which matters for security
Comfy CloudManaged by Comfy OrgNot local: your workflows and outputs run on Comfy’s service

Desktop privacy. Comfy Org’s Desktop privacy policy, revised on 3 June 2026, says analytics (sent to PostHog) and crash diagnostics (sent to Datadog) are opt-in, and can be withdrawn under Settings, Telemetry. If you do opt in, the data includes a pseudonymous device identifier, app and system details and the public names of custom nodes installed through Manager. The policy says prompts, workflow content, models and outputs are not collected.

Get it from the source. Download from comfy.org or the GitHub repository. Pre-built “ComfyUI bundles” shared on forums and file hosts often include node packs and Python wheels you cannot easily inspect, which is exactly how earlier malware travelled.

ComfyUI custom nodes: the main risk

A custom node pack is a folder of Python placed in ComfyUI/custom_nodes, usually with a requirements.txt that installs more packages. ComfyUI imports it at start-up. Nothing sandboxes it: the code can read your files, open network connections and start other programs, exactly like any other software you run. ComfyUI’s security policy treats it that way too. Issues that need a particular custom node installed are out of scope for ComfyUI and go to that node’s maintainer.

Documented malicious node incidents

WhenIncidentWhat happened
June 2024ComfyUI_LLMVISIONA node offering GPT-4 and Claude integration shipped altered openai and anthropic packages. ComfyUI-Manager’s built-in check still lists the files to delete, including VISION-D.exe and a rundll64.exe in %LocalAppData%, and advises changing all passwords
December 2024Ultralytics 8.3.41 and 8.3.42Compromised releases of a Python package that popular packs such as ComfyUI-Impact-Pack depend on carried a crypto miner on macOS and Linux. Manager was updated to warn on the bad versions and install 8.3.40
October 2025Upscaler-4K packsTwo packs from the account lonemilk, published 17 to 19 October, were flagged by Comfy’s automated scanner and banned from the Comfy Registry on 21 October after 790 downloads
April 2026Exposed-server mining campaignCensys found a toolset that used nodes with built-in code execution, or installed a malicious package through ComfyUI-Manager, to deploy XMRig and lolMiner and turn hosts into proxies

Nodes that are vulnerable rather than malicious

Some packs are honest but expose code execution to anyone who can queue a workflow. The NVD lists, for example:

  • CVE-2024-21577 (December 2024, CVSS 10.0): ComfyUI-Ace-Nodes’ expression node passed workflow input to eval().
  • CVE-2024-21576 (December 2024, CVSS 10.0): a validation bypass leading to code injection in ComfyUI-Bmad-Nodes.
  • CVE-2024-21575 (December 2024): a path traversal in an upload endpoint added by ComfyUI-Impact-Pack, which could lead to code execution.
  • CVE-2026-123790 (12 November 2026): a path traversal in ComfyUI-Easy-Use 1.3.6 that let an unauthenticated caller overwrite another node’s Python entry point, which then ran at the next restart.

The April 2026 campaign relied on this class of node. Censys named packs whose code-evaluation nodes (FL_CodeNode, SrlEval, EvaluateMultiple) gave the attackers code execution on servers that already had them installed.

How to choose node packs

  • Install fewer. Every pack adds code and dependencies. Remove packs you no longer use.
  • Prefer the Comfy Registry and authors with a long, public history. Check the repository’s recent commits and issues.
  • Read new code, especially __init__.py, install.py and requirements.txt. Look for downloads of executables, base64 blobs, custom wheel URLs and subprocess calls.
  • Be wary of “missing nodes” prompts from a downloaded workflow. Installing everything a stranger’s workflow asks for is how most people end up with packs they never chose.
  • Isolate experiments. Try unfamiliar packs in a separate install, a container or a virtual machine, not in the environment that holds your SSH keys and browser profile. Our article on sandboxing code-running AI tools covers the options.

ComfyUI-Manager security levels and Comfy Registry rules

ComfyUI-Manager installs, updates and removes node packs. Comfy Desktop ships with it set up; on portable and manual installs it is a separate Python package that you switch on with the --enable-manager start-up flag. The current comfyui-manager release on PyPI was 4.4.2, uploaded on 19 November 2026. Its config.ini sits under ComfyUI/user/__manager/ on ComfyUI v0.3.76 and later, and the start-up log prints the exact path.

Security levels in Manager 4

Manager 4 decides what is allowed from two things: the security_level in config.ini, and whether ComfyUI listens on a non-local address. Its README sorts features into tiers. High+ covers switching ComfyUI versions, restoring snapshots and fixing node packs. Middle+ covers updating and uninstalling packs, installing Git or nightly versions of registered packs, and installing models. Middle covers restarting, removing snapshots and installing Comfy Registry releases. Low is updating ComfyUI.

LevelListening on 127.0.0.1Listening on a network address
strongOnly low-risk actions, such as updating ComfyUIThe same
normal (the default in Manager’s source)High+ blocked; everything else worksHigh+ and middle+ blocked; registry releases can still be installed
normal-Everything worksAs normal
weakEverything worksHigh+ and middle+ blocked

Three more controls matter:

  • allow_git_url_install and allow_pip_install. These separate switches govern installing a pack from an arbitrary Git URL and installing any pip package. Both default to false, and even when enabled they are refused on a network listener, unless network_mode is set to personal_cloud.
  • network_mode. private uses your own node catalogue and offline makes no external connections. personal_cloud relaxes the network-listener rules for single-user cloud machines such as Colab or RunPod; never use it on a shared server.
  • Flagged registry versions. Before installing a registry release, Manager checks its status. A version the registry has flagged installs only when every listen address is loopback, unless you explicitly allow flagged installs or whitelist that pack.

For a shared or exposed server, set security_level = strong, which refuses new installs from the web interface altogether, and leave both install flags off. Do your installs on a separate, local copy and deploy the result.

Vulnerabilities in ComfyUI-Manager itself

  • CVE-2025-67303 (published 5 January 2026): before version 3.38, Manager stored its configuration and data in a location reachable through the web interface, so remote attackers could tamper with it. The fix also needs ComfyUI core v0.3.76 or later.
  • CVE-2026-22777 (published 10 January 2026): special characters in HTTP query parameters could add arbitrary values to config.ini, including security settings. Fixed in 3.39.2 and 4.0.5.

What the Comfy Registry enforces

Comfy Org’s registry standards prohibit eval and exec, runtime package installation through subprocess calls and code obfuscation in published nodes. Its January 2025 security update explained the enforcement: AI-assisted and static analysis scans for obfuscation, HTTP requests and other anomalies, with alerts reviewed privately and then by the community. It also set out plans for author verification and a way to disable malicious nodes remotely through Manager. The October 2025 Upscaler-4K ban shows the scanner catching a real case within days. It also shows the limit: 790 downloads happened first.

The ComfyUI server, port 8188 and the listen flag

ComfyUI runs a web server that the browser interface talks to. In the source code, --listen defaults to 127.0.0.1 and --port to 8188. Passing --listen with no address switches to 0.0.0.0,::, every IPv4 and IPv6 interface.

There is no login. ComfyUI’s security policy treats anyone who can reach the URL as trusted, and it classes problems that need --listen or other network exposure as ordinary bugs rather than vulnerabilities. The user who exposes the server is responsible for the firewall, reverse proxy and authentication. The --multi-user flag enables per-user storage; the documentation does not describe it as a login system.

What an exposed server allows. Anyone who reaches it can queue workflows on your GPU, upload files, read outputs and, through Manager or a vulnerable node, run code. In April 2026 Censys reported more than 1,000 ComfyUI instances reachable from the internet without authentication, after filtering out honeypots. In one scan cycle the attackers’ tool found 624 live instances, 214 of them confirmed vulnerable, and logged 97 successful exploits.

If you need remote access:

  1. Keep ComfyUI on 127.0.0.1 and reach it through a VPN or SSH tunnel, or
  2. Put a reverse proxy with authentication and TLS in front. ComfyUI also accepts --tls-keyfile and --tls-certfile, but TLS alone does not add a login.
  3. Leave --enable-cors-header unset. Given without a value it allows every origin.
  4. Set Manager to strong on anything that other people can reach.

Rented cloud GPUs deserve a special look, because a hosted template has to make ComfyUI reachable from your browser somehow. Check how the template exposes it, and who else can reach that address, before loading anything private.

Published ComfyUI vulnerabilities, with dates

An NVD keyword search for ComfyUI returned 24 entries on 23 November 2026, covering the core, Manager, node packs and other products built on ComfyUI. The table lists those that affect ComfyUI core.

CVEPublishedWhat it isVersions
CVE-2024-1048120 Mar 2025Cross-site request forgery on API endpoints such as /upload/image and /promptUp to 0.2.2 affected
CVE-2025-609215 Jun 2025Cross-site scripting via /upload/image, an incomplete earlier fix (rated low under CVSS 4.0)Up to 0.3.39 affected
CVE-2025-610716 Jun 2025Dynamically determined object attributes in set_attr in comfy/utils.py, described as difficult to exploit (rated low under CVSS 4.0)0.3.40 listed
CVE-2026-6589 to CVE-2026-659320 Apr 2026Five flaws rated low under CVSS 4.0: CSRF in the origin check, path traversal in model preview and LoadImage, and two XSS issuesUp to 0.13.0 affected
CVE-2026-56670 to CVE-2026-5667331 Jul 2026Stored XSS through SVG and user-data files, plus unauthenticated path traversal in model preview and the image-loading nodes0.28.0 (15 Jul 2026)
CVE-2026-6877131 Jul 2026Unsafe pickle loading in the LoadTrainingDataset node: an uploaded file plus a queued workflow ran attacker code (CVSS 9.8)Commit merged 18 Jun 2026; first in v0.26.0 by our check of the repository
CVE-2026-9281616 Sep 2026Dataset save nodes accepted an unsanitised folder name, so a crafted workflow could write files anywhere, enabling code execution0.30.0 (3 Aug 2026)

Two lessons stand out.

Workflows are untrusted input. CVE-2026-92816 and CVE-2026-56673 needed nothing more than a crafted workflow using built-in nodes. ComfyUI’s policy names this exact case, a plausible workflow with only built-in nodes that leads to code execution or file access, as what it wants reported. Treat workflow files from strangers as you would documents with macros.

Updates fix things before disclosure. The serious 2026 entries were fixed weeks before their CVEs appeared: v0.28.0 shipped on 15 July, sixteen days before four CVEs were published against older versions. Desktop’s automatic updates help here; portable and manual installs need you to update.

Are ComfyUI model files safe? Safetensors, ckpt and PyTorch

Image and video models come as files you download, mostly from Hugging Face and Civitai, and the format matters.

.safetensors and GGUF store tensors and metadata only. Loading them cannot run code, which is why they became the default.

.ckpt, .pt and .pth are PyTorch pickle files, a format that can carry code that runs when the file is loaded. ComfyUI core loads them with torch.load(..., weights_only=True), PyTorch’s restricted mode, plus a short allow-list of harmless classes, and logs that checkpoint files will always be loaded safely. Two caveats apply:

  • PyTorch version. CVE-2025-32434 showed that weights_only=True itself could be bypassed in PyTorch 2.5.1 and earlier; it was fixed in 2.6.0. ComfyUI’s policy excludes outdated PyTorch from its threat model, so keeping PyTorch current is on you.
  • Custom nodes load files their own way. A node can call torch.load without restrictions, and CVE-2026-68771 showed that even a built-in node got this wrong until June 2026.

Prefer .safetensors or GGUF whenever a choice exists, and convert old checkpoints with a trusted tool rather than loading them repeatedly. In Manager 4, installing a model is a middle+ action, so at the default level it is refused when ComfyUI listens on a network address.

Provenance and licence. Check who published a model, compare file hashes with the source page, and read the licence. Many image and video models restrict commercial use. Our review of whether Hugging Face is safe covers the platform’s malware scanning, and the local image model roundup lists licences model by model. For specific set-ups, see our guides to running FLUX 3 Klein, the LTX 2.5 video workflow and MiniMax H3 on a local GPU.

Is ComfyUI safe and private? Partner Nodes and other network calls

ComfyUI’s README says the core downloads nothing unless you request it. Your prompts, workflows and outputs stay on your disk. Four things can change that.

Source of trafficWhat leaves the machineHow to control it
Partner Nodes (formerly API nodes)Prompts, images and other inputs, sent through Comfy’s API to providers such as OpenAI, Kling and LumaNeed a Comfy account with credits; disable with --disable-partner-nodes
FrontendRequests from the browser interface--offline sets a restrictive Content-Security-Policy and also disables Partner Nodes
ComfyUI-ManagerCatalogue lookups and downloads of nodes and modelsnetwork_mode = offline or private
Custom nodesAnything their code choosesRead the code; block outbound traffic at the firewall

Images carry your workflow. By default ComfyUI saves the prompt and the full workflow inside generated PNG files, which is handy for sharing set-ups and leaky for confidential work. Start with --disable-metadata if outputs leave your organisation.

Desktop telemetry is opt-in, as described above. Partner Nodes documentation does not state how long providers keep inputs, so treat them as you would any hosted image service.

ComfyUI hardening checklist

  1. Update ComfyUI to v0.30.0 or later at the very least; on 23 November 2026 the newest release was v0.46.0.
  2. Keep PyTorch current on portable and manual installs: ComfyUI’s install notes call 2.7 the minimum supported version, and its security policy treats 2.6 and older as outdated.
  3. Keep the default listen address of 127.0.0.1. Reach remote machines through a VPN or SSH tunnel.
  4. If you must expose it, put an authenticating reverse proxy with TLS in front and firewall port 8188.
  5. Set Manager’s security_level to strong on any shared or reachable server, and leave allow_git_url_install and allow_pip_install off.
  6. Install few node packs, from the Comfy Registry and known authors, and remove unused ones.
  7. Read new node code and its requirements.txt before first run.
  8. Do not auto-install every missing node a downloaded workflow asks for.
  9. Prefer .safetensors or GGUF model files and record where each came from.
  10. Use --offline where prompts and images must stay local, and --disable-metadata where outputs leave the building.
  11. Test unfamiliar packs in isolation: a separate install, container or virtual machine without access to credentials.
  12. Watch for warning signs such as unexplained GPU load, new processes, or files you did not create in custom_nodes.

Is ComfyUI safe for a company?

ComfyUI is a strong creative tool, and the GPL-3.0 licence allows internal use. Comfy Org also markets an enterprise offering with a single approved build, dedicated capacity, commercial licensing and security review. The open-source server on its own, though, leaves gaps a security team will notice.

  • No identities. No logins, roles or per-user permissions. Everyone who reaches the server is trusted equally.
  • No audit trail. There is no record of who ran which workflow with which inputs.
  • Code sprawl. Each artist’s install grows its own set of node packs and Python packages, which is hard to inventory and patch.
  • Model sprawl. Model files arrive from many sources with different licences.
  • Unmanaged installs. ComfyUI on workstations with whatever nodes people added is shadow AI in practice, even when every image stays local.

A workable pattern is a curated build: a fixed ComfyUI version, an approved list of node packs pinned to reviewed commits, models from approved sources, Manager set to strong, no internet exposure, and a gateway for access. The same supply-chain discipline that our guide to securing model artifacts describes for language models applies to node packs.

How VDF AI fits

VDF AI does not ship, host or resell ComfyUI, and it is not an image-generation tool. The governance lesson from ComfyUI applies to every local AI system, though: decide centrally which code, tools and models may run, who may use them and how use is recorded.

That is the layer VDF AI provides for language models and agents, on-premises or in a private cloud. VDF AI Agents assigns tools to each agent from an MCP-powered registry rather than letting each user install their own, with role-based access control and audit logging on every plan. VDF AI Router registers self-hosted model servers as on-premises sources, enforces allow and deny lists before each call and offers an air-gap mode that keeps routing on local models. On-premises deployments sign users in with Microsoft Entra ID.

Sources

ComfyUI’s source code, Comfy Org’s documentation and blog, and the advisories and vulnerability records for ComfyUI and its node packs, as retrieved on 23 November 2026.


Running AI tools across a team and need approved software, access control and audit records around them? See how VDF AI Agents governs tools, or talk to our team.

Frequently asked questions

Is ComfyUI safe to use?

For a single user on a single machine, the core program is. It is GPL-3.0 open source, binds to 127.0.0.1 on port 8188 by default, downloads nothing unless asked and loads checkpoint files in PyTorch's restricted mode. Keep it updated, because several 2026 CVEs affected built-in nodes and endpoints. The larger risk is what you install on top: custom nodes are third-party Python code, and a handful have carried password stealers and crypto miners.

Is ComfyUI safe to download and install?

Yes, from the official sources: the Comfy Desktop installer from comfy.org, the Windows portable build or a manual install from the Comfy-Org/ComfyUI repository on GitHub. ComfyUI's security policy assumes one of those channels, recent PyTorch and no untrusted custom nodes. What makes an install unsafe later is usually a node pack added afterwards, or a dependency it pulls in, as the compromised Ultralytics releases showed in December 2024.

Can ComfyUI custom nodes contain malware?

Yes, and it has happened more than once. ComfyUI_LLMVISION shipped modified OpenAI and Anthropic packages that stole browser data in June 2024. Two Upscaler-4K packs were banned from the Comfy Registry in October 2025 after 790 downloads. A node runs with the same rights as your user account, so it can read files, steal credentials or install a miner. Install few packs, prefer well-known authors and read new code before running it.

Does ComfyUI send data to the internet?

Core ComfyUI does not, unless you ask it to download something or use Partner Nodes, the paid nodes that send prompts and images to providers such as OpenAI, Kling and Luma through Comfy's API. Comfy Desktop collects analytics and crash reports only if you opt in. Custom nodes are the unknown, since any node can make network calls. Start ComfyUI with --offline to disable Partner Nodes and block the frontend's internet access.

Is it safe to run ComfyUI with --listen?

Not on an untrusted network. The listen flag without an address makes ComfyUI accept connections on every interface, and the server has no login. Anyone who can reach port 8188 can queue workflows, upload files and, through ComfyUI-Manager or a vulnerable node, run code. Censys counted over 1,000 exposed instances in April 2026 during a mining campaign. If others need access, put a VPN or an authenticating reverse proxy with TLS in front.

Is ComfyUI Desktop safe?

Comfy Desktop is the officially recommended way to install ComfyUI on Windows and macOS, and it is as safe as the core it packages. It checks for updates shortly after launch and every ten minutes, and installs them automatically by default, which keeps you current. Analytics and crash reports are opt-in under Settings and Telemetry. The custom-node risk is unchanged: Desktop does not make third-party nodes any safer to install.

Filed under
ComfyUIAI securityimage generationsoftware supply chainmodel 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