Vulnerability PYSEC-2026-1260

High Risk
HIGH RISK
CVSS Score: 7.5
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
4 months ago
July 07, 2026 at 04:03 PM UTC
ComfyUI-Manager is Vulnerable to CRLF Injection in Configuration Handler
4.0 and 4.0.1b1 and 4.0.1b2 and 4.0.1b3 and 4.0.1b4 and 4.0.1b5 and 4.0.1 - 4.0.3b1 and 4.0.3b2 and 4.0.3b3 and 4.0.3b4 and 4.0.3b5 and 4.0.3b6 and 4.0.3b7 and 4.0.3 - 4.0.4
4.0 and 4.0.1b1 and 4.0.1b2 and 4.0.1b3 and 4.0.1b4 and 4.0.1b5 and 4.0.1 - 4.0.3b1 and 4.0.3b2 and 4.0.3b3 and 4.0.3b4 and 4.0.3b5 and 4.0.3b6 and 4.0.3b7 and 4.0.3 - 4.0.4

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:

Impacted packages

Timeline

Published
4 months ago
July 07, 2026 at 04:03 PM UTC
Last Modified
9 hours ago
November 24, 2026 at 11:15 AM UTC