Advisory

PYSEC-2026-1260

Also known as: CVE-2026-22777, GHSA-562r-8445-54r2

Summary

ComfyUI-Manager is Vulnerable to CRLF Injection in Configuration Handler

Details

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:

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

comfy-cli

PyPI · All systems

Affected

  • introduced 0, fixed 3.39.2, introduced 4.0.0, fixed 4.0.5 (ecosystem)

Fixed versions

3.39.2, 4.0.5

Fix

  • Fixed version 3.39.2
    pip install --upgrade comfy-cli==3.39.2
  • Fixed version 4.0.5
    pip install --upgrade comfy-cli==4.0.5

Fix 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

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences