Registry-listed nodes silently install unlisted node code via comfy-env
Summary
Installing a registry-listed node through ComfyUI-Manager can pull in additional custom nodes that are not in the registry, never shown to the user, and not tracked by Manager. One node installed this way (ComfyUI-Env-Manager) contains an unauthenticated command-execution route (see PozzettiAndrea/ComfyUI-Env-Manager#5). This report is about the install path that puts unlisted code on the machine without the user choosing it, not the RCE itself.
How it happens
- ComfyUI-SAM3, ComfyUI-SAM3DBody, ComfyUI-Sharp and ComfyUI-GeometryPack (same author) are listed in the Manager registry.
- Each ships a
comfy-env-root.tomlwith a[node_reqs]section naming other GitHub repos as dependencies. - The
comfy-envpackage (currently 0.3.89), which these nodes depend on,git clones every[node_reqs]entry straight intocustom_nodes/at install/update time (comfy_env/packages/node_dependencies.py,install_node_dependencies/clone_node). - ComfyUI-Env-Manager is one of those
[node_reqs]entries and is not listed in the Manager registry. Checked the cachedcustom-node-list.json: zero matches for it, while the parent nodes are all present.
So a user installs a vetted, registry-listed node, and comfy-env side-loads an unvetted, unlisted node behind the registry's back. The same mechanism also pulled ComfyUI-DepthAnythingV3 and ComfyUI-Multiband onto my machine. I never saw or approved ComfyUI-Env-Manager.
Why this matters for the registry model
Registry review and Manager's security-level controls only cover what's listed. A listed node that runs git clone on arbitrary repos during install routes around all of it. The cloned code isn't pinned to a reviewed version, isn't shown in the install dialog, and updates independently of anything Manager knows about.
Suggestions
- Flag or reject registry nodes whose install/prestartup path
git clones other repos intocustom_nodes/. At minimum surface it in the install dialog. - If comfy-env-style dependency pulling is to be supported, require those dependencies to be registry entries that go through the same review and appear in the install list, rather than raw GitHub URLs cloned silently.
- Note that comfy-env re-clones a missing dependency, so disabling or removing a side-loaded node doesn't stick unless the parent is also stopped.
Reproduce
Install ComfyUI-SAM3 (or -Sharp) through Manager on a machine with comfy-env, then look at custom_nodes/ for ComfyUI-Env-Manager, ComfyUI-Multiband, etc. that were never selected.
Related: PozzettiAndrea/comfy-env#9 raises the opt-in/deployment side of comfy-env, but not the registry bypass or the fact that a side-loaded node carries an RCE.
Comfy-Org/ComfyUI-Manager#2992 - Add ComfyUI-SCAIL-Pose2 custom node [closed]
Comfy-Org/ComfyUI-Manager#3132 - Add ComfyUI_Eagle_Suite to custom-node-list.json [open]
Comfy-Org/ComfyUI-Manager#3135 - Register ComfyUI-Qwen-FrameKit [merged]
Comfy-Org/ComfyUI-Manager#3137 - Register muapi-comfyui in the custom node list [open]
Comfy-Org/ComfyUI-Manager#3139 - Add ComfyUI-ModelPathManager to custom node list [open]🔗 Related PRs
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Hi @Armychimp :)
I am the creator and maintainer of comfy-env and several nodes. I have removed ComfyUI-Env-Manager from all node_reqs a few months ago, may I know what version of SAM3 you ended up installing and when that pulls in ComfyUI-Env-Manager? You can find this in pyproject.toml
I am also a little bit confused as to what you mean by "vetted, registry-listed node" as the registry itself doesn't run any kind of testing or CI on the listed nodes. Anyone can publish anything they want there. There is nothing besides some ridiculous static analysis, which by the way already excludes my nodes because they use comfy-env, which means that you have had to set the security level to the lowest setting if you were able to install any of my nodes from the Manager itself.
I would also like to point out that I have added "Warning, uses experimental package comfy-env to attempt a one click isolated install. Will download and use pixi package manager." disclaimers to all of my nodes, both on the GitHub page and in the Registry description.
Manager does not review what a node pack's install script does. It relies on the status that the Registry gives each version: an Active version is installed as trusted, and a Flagged one is restricted. A version that should not be trusted is therefore handled by flagging that version in the Registry, not by a check in Manager.
What I found when checking this report on 2026-11-16:
- The mechanism is as described.
install.pyof these packs callscomfy_env.install(). comfy-env 0.3.89, which they pin, clones every[node_reqs]entry that is not there yet from GitHub intocustom_nodes/, at the head of the default branch, and runs itsinstall.py. - ComfyUI-Env-Manager is no longer in the
[node_reqs]of ComfyUI-SAM3, ComfyUI-SAM3DBody, ComfyUI-Sharp or ComfyUI-GeometryPack, and its repository is no longer public. - Registry status today: the latest versions of ComfyUI-SAM3DBody, ComfyUI-Sharp and ComfyUI-DepthAnythingV3 are Flagged.
comfyui-sam30.1.21 andcomfyui-geometrypack0.2.19 are Active. Of these two,comfyui-sam30.1.21 clones ComfyUI-VideoHelperSuite and ComfyUI-Multiband in this way;comfyui-geometrypack0.2.19 has no[node_reqs]. - On the security level: a Flagged version does not require the lowest level. Manager refuses a Flagged version only when ComfyUI listens on a non-loopback address and the configuration does not allow it; on a local server it installs at the default level.
The versions in the Registry were scanned with different versions of the security scanner, so their status is not uniform yet; that is why packs that work the same way differ above. The scanner is still being revised, and every version will be scanned again once it has settled. comfyui-sam3 0.1.21 will get its status from that scan. No change is planned in Manager, so I am closing this issue.