CVE-2026-22777: ComfyUI-Manager is Vulnerable to CRLF Injection in Configuration Handler

Published Jan 10, 2026
·
Updated

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 writeconfig() 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

- CWE-93: Improper Neutralization of CRLF Sequences - OWASP CRLF Injection

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>

Other sources

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.

MITRE

Affected Software

5 affected componentsFixes available
ComfyUI ComfyUI-Manager<3.39.2, <4.0.5
pip/comfy-cli<3.39.2
3.39.2
pip/comfy-cli>=4.0.0<=4.0.4
4.0.5
Comfy ComfyUI-Manager<3.39.2
Comfy ComfyUI-Manager>=4.0.3<4.0.5

Event History

Jan 10, 2026
CVE Published
via MITRE·06:43 AM
Data Sourced
via MITRE·06:43 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 AM
RemedyAffected Software
Jan 13, 2026
Advisory Published
via GitHub·07:02 PM
Data Sourced
via GitHub·07:02 PM
DescriptionSeverityWeaknessAffected Software
Apr 20, 58071
Event
via FIRST·11:22 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-22777?

CVE-2026-22777 has a moderate severity rating due to potential unauthorized modification of sensitive configuration settings.

2

How do I fix CVE-2026-22777?

To fix CVE-2026-22777, update ComfyUI-Manager to version 3.39.2 or later, or 4.0.5 or later.

3

What types of software are affected by CVE-2026-22777?

CVE-2026-22777 affects ComfyUI-Manager prior to versions 3.39.2 and 4.0.5.

4

What kind of attack does CVE-2026-22777 allow?

CVE-2026-22777 allows an attacker to inject special characters into HTTP query parameters, leading to arbitrary configuration changes.

5

What is the potential impact of CVE-2026-22777?

The potential impact of CVE-2026-22777 includes unauthorized modification of security settings, which could compromise system integrity.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203