CVE-2026-22777
JSON

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 packageVersionsReported by
Comfy-Org ComfyUI-Manager>= 4.0.0, < 4.0.5, < 3.39.2CVE List
comfy-cli (PyPI)from 4.0.0 before 4.0.5, before 3.39.2GitHub Advisory Database
comfy comfyui-managerbefore 3.39.2, from 4.0.3 before 4.0.5NVD
comfyui-manager (PyPI)before 3.39.2, from 4.0.0 before 4.0.5PyPA Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
PyPA Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-93

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 --listen option

References

Credit

This vulnerability was reported by:

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

SourceRecordLicence
CVE ListCVE-2026-22777 changed 2026-01-12CVE Terms of Use
GitHub Advisory DatabaseGHSA-562r-8445-54r2 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-22777 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1260 changed 2026-11-24CC-BY-4.0