7.5high
ComfyUI-Manager is Vulnerable to CRLF Injection in Configuration Handler
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.87% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-562r-8445-54r2PYSEC-2026-1260
Description
ComfyUI-Manager is an extension designed to enhance the usability of ComfyUI. Prior to versions 3.39.2 and 4.0.5, 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. This issue has been patched in versions 3.39.2 and 4.0.5.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Comfy-Org ComfyUI-Manager | >= 4.0.0, < 4.0.5, < 3.39.2 | CVE List |
| comfy-cli (PyPI) | from 4.0.0 before 4.0.5, before 3.39.2 | GitHub Advisory Database |
| comfy comfyui-manager | before 3.39.2, from 4.0.3 before 4.0.5 | NVD |
| comfyui-manager (PyPI) | before 3.39.2, from 4.0.0 before 4.0.5 | PyPA Advisory Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| PyPA Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
ComfyUI-Manager is an extension designed to enhance the usability of ComfyUI. Prior to versions 3.39.2 and 4.0.5, 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. This issue has been patched in versions 3.39.2 and 4.0.5.
GitHub Advisory Database
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:
- 3.39.2 (v3.x branch)
- 4.0.5 (v4.x branch)
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:
- Run ComfyUI-Manager only on trusted networks
- Block external access via firewall
- Run on localhost only without the
--listenoption
References
Credit
This vulnerability was reported by:
- 李存义 xiaoheihei1107@gmail.com
- D0n9 Li wyd0n9@gmail.com
- Swings swing@mail.exp.sh
- Osword from SGLAB of Legendsec at Qi'anxin Group zhzhdoai@gmail.com
NVD (es)
ComfyUI-Manager es una extensión diseñada para mejorar la usabilidad de ComfyUI. Antes de las versiones 3.39.2 y 4.0.5, un atacante puede inyectar caracteres especiales en los parámetros de consulta HTTP para añadir valores de configuración arbitrarios al archivo config.ini. Esto puede llevar a la manipulación de la configuración de seguridad o a la modificación del comportamiento de la aplicación. Este problema ha sido parcheado en las versiones 3.39.2 y 4.0.5.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-22777 changed 2026-01-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-562r-8445-54r2 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-22777 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1260 changed 2026-11-24 | CC-BY-4.0 |