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
| Scenario | Verdict | Why |
|---|---|---|
| Current ComfyUI, built-in nodes only, default settings | Safe | Binds to 127.0.0.1:8188; core downloads nothing unless asked |
| A few popular, maintained node packs from the Comfy Registry | Acceptable with care | Registry rules ban eval, runtime pip install and obfuscation, and malicious packs have been removed |
| Node packs installed from random Git URLs or archives | Risky | No review; the code runs with your permissions |
| Workflows downloaded from the internet | Check first | A workflow can pull in missing nodes, and several 2026 CVEs were triggered by crafted workflows |
--listen on a home or office network | Risky | No login; any device on the network can queue jobs and upload files |
| Port 8188 reachable from the internet | Unsafe | Mining campaigns scan for exposed instances and install malicious nodes |
| Partner Nodes such as GPT Image or Kling | A hosted service | Prompts and images go to third-party providers |
| One GPU server shared by a team | Needs more than ComfyUI | No 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 method | Updates | What to watch |
|---|---|---|
| Comfy Desktop (Windows, macOS) | Checks shortly after launch and every 10 minutes; installs automatically by default | Analytics and crash reports are opt-in; installs under %LOCALAPPDATA%\Comfy-Desktop on Windows |
| Windows portable | Manual | Self-contained Python and PyTorch; launch flags go in the run_*.bat file; the docs steer regular users to Desktop instead |
| Manual install or comfy-cli | You run git pull and manage Python packages | You own the PyTorch version, which matters for security |
| Comfy Cloud | Managed by Comfy Org | Not 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
| When | Incident | What happened |
|---|---|---|
| June 2024 | ComfyUI_LLMVISION | A 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 2024 | Ultralytics 8.3.41 and 8.3.42 | Compromised 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 2025 | Upscaler-4K packs | Two 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 2026 | Exposed-server mining campaign | Censys 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.pyandrequirements.txt. Look for downloads of executables, base64 blobs, custom wheel URLs andsubprocesscalls. - 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.
| Level | Listening on 127.0.0.1 | Listening on a network address |
|---|---|---|
strong | Only low-risk actions, such as updating ComfyUI | The same |
normal (the default in Manager’s source) | High+ blocked; everything else works | High+ and middle+ blocked; registry releases can still be installed |
normal- | Everything works | As normal |
weak | Everything works | High+ and middle+ blocked |
Three more controls matter:
allow_git_url_installandallow_pip_install. These separate switches govern installing a pack from an arbitrary Git URL and installing any pip package. Both default tofalse, and even when enabled they are refused on a network listener, unlessnetwork_modeis set topersonal_cloud.network_mode.privateuses your own node catalogue andofflinemakes no external connections.personal_cloudrelaxes 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:
- Keep ComfyUI on
127.0.0.1and reach it through a VPN or SSH tunnel, or - Put a reverse proxy with authentication and TLS in front. ComfyUI also accepts
--tls-keyfileand--tls-certfile, but TLS alone does not add a login. - Leave
--enable-cors-headerunset. Given without a value it allows every origin. - Set Manager to
strongon 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.
| CVE | Published | What it is | Versions |
|---|---|---|---|
| CVE-2024-10481 | 20 Mar 2025 | Cross-site request forgery on API endpoints such as /upload/image and /prompt | Up to 0.2.2 affected |
| CVE-2025-6092 | 15 Jun 2025 | Cross-site scripting via /upload/image, an incomplete earlier fix (rated low under CVSS 4.0) | Up to 0.3.39 affected |
| CVE-2025-6107 | 16 Jun 2025 | Dynamically 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-6593 | 20 Apr 2026 | Five flaws rated low under CVSS 4.0: CSRF in the origin check, path traversal in model preview and LoadImage, and two XSS issues | Up to 0.13.0 affected |
| CVE-2026-56670 to CVE-2026-56673 | 31 Jul 2026 | Stored XSS through SVG and user-data files, plus unauthenticated path traversal in model preview and the image-loading nodes | 0.28.0 (15 Jul 2026) |
| CVE-2026-68771 | 31 Jul 2026 | Unsafe 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-92816 | 16 Sep 2026 | Dataset save nodes accepted an unsanitised folder name, so a crafted workflow could write files anywhere, enabling code execution | 0.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=Trueitself 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.loadwithout 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 traffic | What leaves the machine | How 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 Luma | Need a Comfy account with credits; disable with --disable-partner-nodes |
| Frontend | Requests from the browser interface | --offline sets a restrictive Content-Security-Policy and also disables Partner Nodes |
| ComfyUI-Manager | Catalogue lookups and downloads of nodes and models | network_mode = offline or private |
| Custom nodes | Anything their code chooses | Read 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
- Update ComfyUI to v0.30.0 or later at the very least; on 23 November 2026 the newest release was v0.46.0.
- 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.
- Keep the default listen address of 127.0.0.1. Reach remote machines through a VPN or SSH tunnel.
- If you must expose it, put an authenticating reverse proxy with TLS in front and firewall port 8188.
- Set Manager’s
security_leveltostrongon any shared or reachable server, and leaveallow_git_url_installandallow_pip_installoff. - Install few node packs, from the Comfy Registry and known authors, and remove unused ones.
- Read new node code and its
requirements.txtbefore first run. - Do not auto-install every missing node a downloaded workflow asks for.
- Prefer
.safetensorsor GGUF model files and record where each came from. - Use
--offlinewhere prompts and images must stay local, and--disable-metadatawhere outputs leave the building. - Test unfamiliar packs in isolation: a separate install, container or virtual machine without access to credentials.
- 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.
- ComfyUI on GitHub: repository, security policy, command-line arguments, model loading code, releases and the fix for CVE-2026-68771
- ComfyUI-Manager: Manager 4 README and security policy, Manager 4 source, ComfyUI installation notes on Manager, built-in security check, configuration documentation, v3.38 user-data migration note and PyPI package
- Comfy Org documentation: Windows Desktop install, Partner Nodes, registry standards, Desktop privacy policy and privacy policy
- Comfy Org blog: January 2025 security update, statement on the Ultralytics crypto miner and Upscaler-4K malicious node pack post-mortem
- National Vulnerability Database keyword search for ComfyUI, including CVE-2024-10481, CVE-2024-21575, CVE-2024-21576, CVE-2024-21577, CVE-2025-6092, CVE-2025-6107, CVE-2025-67303, CVE-2026-22777, CVE-2026-6589, CVE-2026-56670, CVE-2026-56671, CVE-2026-56673, CVE-2026-68771, CVE-2026-92816, CVE-2026-123790 and CVE-2025-32434 (PyTorch)
- GitHub advisories: GHSA-rj8c-c4p8-3c5h, GHSA-pj59-g5vv-74q4, GHSA-rvxv-29p8-pxgq and GHSA-562r-8445-54r2 (ComfyUI-Manager)
- Censys: Hackers are attempting to turn ComfyUI servers into a cryptomining proxy botnet
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.