comfy-cli
Affected
- introduced
4.0.0, fixed4.0.5(ecosystem)
Fixed versions
4.0.5
Fix
- Fixed version
4.0.5pip install --upgrade comfy-cli==4.0.5
Advisory
Also known as: CVE-2026-22777, PYSEC-2026-1260
ComfyUI-Manager is Vulnerable to CRLF Injection in Configuration Handler
Impact
Vulnerability Type: CRLF Injection via ConfigParser
An attacker can inject special characters into HTTP query parameters to add arbitrary configuration values to the config.ini file. This can lead to security setting tampering or modification of application behavior.
Affected Users: Users running ComfyUI-Manager in environments where ComfyUI is configured with the --listen option to allow remote access.
CVSS Score: 7.5 (High)
Patches
Fixed in the following versions:
Sanitization logic was added to the write_config() function to remove CRLF and NULL characters from all string values.
Workarounds
If upgrading is not possible:
--listen optionReferences
Credit
This vulnerability was reported by:
High Basis: The source's own band: HIGH
4.0.0, fixed 4.0.5 (ecosystem)4.0.5
4.0.5pip install --upgrade comfy-cli==4.0.50, fixed 3.39.2 (ecosystem)3.39.2
3.39.2pip install --upgrade comfy-cli==3.39.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0