Skip to main content
SkillTotal

Is Comfy-Org/ComfyUI safe?

What Comfy-Org/ComfyUI does

ComfyUI is a node-graph application that runs diffusion and other open models on your own hardware. With them it generates images, video, audio and 3D models. It lives in the Comfy-Org/ComfyUI repository under GPL-3.0, and Comfy Org also runs a paid cloud version. It runs models on your GPU or CPU, offers a local API, and accepts custom nodes, which ComfyUI-Manager can install. The README says the core downloads nothing unless you request it, and the --offline flag turns off the optional paid API nodes. Before installing, review each custom node before you add it, and start with --offline if you do not need the API nodes.

No malicious indicators - review capabilities before installing
Notable — review in context (a capability is not a malicious indicator):
  • Python shell/command execution
  • Python filesystem write/delete
  • Python network egress

What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.

Comfy-Org/ComfyUI is a GitHub repository analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: filesystem read, filesystem write, network egress and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).

ComfyUI 0.46.0

GitHub repository, read as a PyPI package · https://github.com/Comfy-Org/ComfyUI
LOW
0
/ 100 risk score
Snapshot · scanned Nov 21, 2026 · ComfyUI@0.46.0 · engine 1.8.0 / ruleset 107

Get notified when this component changes

Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.

Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of Comfy-Org/ComfyUI's authors. Report a false positive.

Capabilities — what this component can do (not a risk score):
filesystem readfilesystem writenetwork egressshell execution

Behavioral traits

How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.

Execution authority
Tool Access Control / Direct Tool Access
Filesystem reach
Tool Execution Context
Network egress
Interaction & Communication / Direct Communication

Findings (4)

CapabilityPython shell/command executionnot scored · severity highST-SHELL-PY

The component can run operating-system commands or spawn processes.

subprocess.check_call([sys.executable, '-s', '-m', 'pip', 'install', '-r', repo_req_path])
out = subprocess.check_output(['nvidia-smi', '-L'])

Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.

Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; avoid shell=True.

CapabilityPython filesystem readnot scored · severity mediumST-FS-PY-READ

The component reads files from disk.

with open(file) as f:
source = open(entry.abs_path, "rb")
with open(abs_path, "rb") as f:
with open(os.fspath(fp), "rb") as f:
with open(file_path, "rb") as f:
with open(path, "rb") as file:
with open(file_path, "r", encoding="utf-8") as f:
with open(env_file, encoding="utf-8") as f:
with open(path, encoding="utf-8", errors="replace") as f:
for line in (_read_text(path) or "").splitlines():
m = re.search(r"^gitdir:\s*(.+?)\s*$", _read_text(dot_git) or "", re.MULTILINE)
head = (_read_text(os.path.join(gitdir, "HEAD")) or "").strip()
sha = (_read_text(os.path.join(gitdir, *parts)) or "").strip()
for line in (_read_text(os.path.join(gitdir, "packed-refs")) or "").splitlines():
raw = dist.read_text("direct_url.json")
with open(path, "r", encoding="utf-8") as stream:
policy = verify_and_load(_POLICY_PATH.read_bytes())
with open(entry['path'], 'r', encoding='utf-8') as f:
with open(self.get_users_file()) as f:
with open(json_path, 'r') as f:
with open(frag_path, 'r') as f:
with open(json_path, 'r') as f:
with open(json_config) as f:
with open(json_config) as f:

Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.

Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.

CapabilityPython filesystem write/deletenot scored · severity mediumST-FS-PY-WRITE

The component writes or deletes files on disk.

shutil.copy(repo_update_py_path, os.path.join(cur_path, "update_new.py"))
shutil.copy(repo_req_path, req_path)
shutil.copy(stable_update_script, stable_update_script_to)
with open(file, "w") as f:
os.remove(self.export_path(forgotten.export_name))
os.remove(partial_path)
os.remove(partial_path)
with open(tmp_path, "wb") as f:
shutil.rmtree(temp_dir)
with open(path, "wb") as f:
shutil.copyfile(temp_path, dest_abs)
shutil.copy(backup_path, db_path)
shutil.copymode(source_path, destination_path)
os.remove(backup_path)
open(path, "a").close()
with open(self.get_users_file(), "w") as f:
os.unlink(tmp_path)
shutil.move(source, dest)
with open(frag_path, 'w') as f:
with open(json_path, 'w') as f:

Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.

Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.

CapabilityPython network egressnot scored · severity mediumST-NET-PY

The component makes outbound network requests.

self.routes: web.RouteTableDef = web.RouteTableDef()
return web.json_response("".join([(l["t"] + " - " + l["m"]) for l in app.logger.get_logs()]))
return web.json_response({
                "entries": list(app.logger.get_logs()),
                "size": {"cols": self.terminal_service.cols, "rows": self.terminal_service.rows}
            })
return web.json_response({"error": "Invalid directory type"}, status=400)
return web.json_response([f"{entry.name} [{directory_type}]" for entry in sorted_files], status=200)
from aiohttp import web
raise web.HTTPUnauthorized() from e
return web.json_response(self.get_settings(request))
return web.json_response(value)
return web.Response(status=200)
return web.Response(status=400)
return web.Response(status=200)
from aiohttp import web
web.post("/api/assets/export", gated(self._create_export_route)),
web.get("/api/assets/exports/{exportName}", gated(self._export_url_route)),
web.get("/api/tasks/{task_id}", gated(self._get_task_route)),
return web.json_response(
            {
                "task_id": task.id,
                "status": ExportStatus.CREATED,
                "message": "Export task created. Use task_id to track progress.",
            },
            status= …
return web.json_response({"url": f"/api/view?{query}"})
return web.json_response(response)
from aiohttp import web
ROUTES = web.RouteTableDef()

Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.

Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.

How attackers abuse these capabilities

Interactive labs on the attack class behind the rules above. They show the technique, not anything found in Comfy-Org/ComfyUI.

Maintain Comfy-Org/ComfyUI?

Check the next package before your agent installs it

The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.

Check your own component

Run the same evidence-backed scan on any MCP server, agent skill, or package.

Scan your own component

How we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →