Vulnerability PYSEC-2026-2422
Summary
ComfyUI-Manager has an Unprotected Alternate Channel (CWE-420)
Details
Impact
An Unprotected Alternate Channel (CWE-420) vulnerability was discovered in ComfyUI-Manager versions prior to 3.38.
Vulnerability Details
In affected versions, ComfyUI-Manager stored its configuration in the user/default/ComfyUI-Manager/ directory, which was accessible via ComfyUI's web APIs without proper access control. This unprotected alternate channel allowed remote attackers to read and manipulate configuration files and critical data through the web interface.
Potential Attack Scenarios
An attacker exploiting this vulnerability could:
- Modify security settings: Lower the security level from "strong" to "weak" to enable more dangerous operations
- Tamper with custom node sources: Add malicious custom node repositories
- Manipulate snapshot data: Corrupt or alter system snapshots
- Change manager behavior: Alter various manager configuration settings
Affected Configurations
| Configuration | Risk Level |
|---|---|
Systems running with --listen 0.0.0.0 (externally exposed) |
HIGH |
| Systems behind reverse proxy without proper access control | MEDIUM |
| Local-only installations (default, localhost only) | NOT AFFECTED |
Workarounds
If immediate upgrade is not possible, apply the following mitigations:
| Mitigation | Effectiveness | Effort |
|---|---|---|
Remove --listen 0.0.0.0 flag (use localhost only) |
HIGH | Low |
| Implement firewall rules to block external access to ComfyUI ports | HIGH | Medium |
| Use reverse proxy with authentication (e.g., nginx + basic auth) | HIGH | Medium |
| Restrict network access to trusted IPs only | MEDIUM | Low |
Note: These are temporary mitigations. Upgrading to v3.38+ is strongly recommended.
Credit
This vulnerability was reported by Ricter Zheng (ricterzheng / 郑杜涛) from Tencent Xuanwu Lab [email protected]
Related Vulnerabilities
Other vulnerabilities affecting the same packages