T08 · Insecure Dependencies
- Location
references/faq.md:43- Finding
Unverified Installation of ComfyUI Custom Nodes
- Content
View full analysis
Vulnerability Details
File Location:
references/faq.md, lines 43-47
Vulnerability Type: Unverified third-party executable dependency installation
Risk Level: MediumVulnerable Documentation Snippet
markdown ## Q: The generated workflow cannot be imported into ComfyUI? **A:** This script generates a simplified workflow: 1. Open ComfyUI. 2. Click "Load" and select the JSON file. 3. The system will report missing nodes; click to install the missing nodes. 4. Alternatively, manually install the missing custom nodes through Manager.Technical Analysis
The documentation instructs users to install unspecified missing custom nodes through ComfyUI Manager. It does not identify the required repositories, trusted publishers, immutable revisions, or expected integrity hashes.
ComfyUI custom nodes are executable Python components rather than passive configuration files. A package selected from an unverified search result can execute code with the same operating-system privileges as the ComfyUI process. Name collisions, repository compromise, malicious search results, or dependency substitution could therefore turn the recommended installation process into a supply-chain attack.
The project does not itself download or execute remote content. The risk arises when a user follows the documented installation procedure.
Attack Path
- An attacker publishes a malicious custom-node repository under a name matching or resembling a node reported as missing.
- The user imports the generated workflow and receives a missing-node notification.
- Following the documentation, the user accepts the suggested installation or searches ComfyUI Manager without verifying the repository owner and revision.
- ComfyUI Manager downloads and installs the attacker-controlled Python package.
- ComfyUI imports or initializes the custom node.
- The malicious initialization code executes with the privileges of th ...[truncated 636 chars]
- Remediation
View remediation
Remediation Suggestions
- List every required custom node using its exact repository URL and verified publisher.
- Pin each dependency to an immutable commit hash or signed release rather than a branch or search result.
- Publish SHA-256 hashes or signatures for approved release artifacts.
- Warn users not to install arbitrary packages merely because their names resemble missing node types.
- Recommend reviewing custom-node source code and installation scripts before use.
- Maintain an explicit allowlist of compatible repositories and versions.
- Recommend running ComfyUI under a dedicated, non-administrative account or isolated environment.
- If the workflow can operate with built-in nodes, remove unnecessary custom-node installation instructions.
