CVE-2026-22777: ComfyUI-Manager CRLF Injection Vulnerability

comfy-cli Updated 13 Jan 2026

Summary

13/01/2026
Yes i
High
7.5

CVE-2026-22777: ComfyUI-Manager is Vulnerable to CRLF Injection in Configuration Handler. Affects comfy-cli across 2 version ranges.

< 3.39.2 >= 4.0.0, < 4.0.5

Fixed in 3.39.2 or 4.0.5, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

ComfyUI-Manager is a tool designed for managing the ComfyUI framework, which is used for creating user interfaces in Python applications. It allows users to configure settings and manage the application through a configuration file named 'config.ini'. The application is particularly vulnerable when configured with the '--listen' option, enabling remote access, which exposes it to potential attacks.

Vulnerability Detail

The vulnerability arises from improper handling of HTTP query parameters in the configuration handler, specifically through the ConfigParser module. An attacker can exploit this by injecting CRLF (Carriage Return Line Feed) characters into the parameters, allowing them to manipulate the 'config.ini' file. This could lead to unauthorized changes in security settings or application behavior, potentially compromising the integrity of the application.

How To Fix

Latest published version: 1.23.0 as of 23 Oct 2026

pip install --upgrade "comfy-cli==1.23.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 3.39.2 3.39.2
    pip install --upgrade "comfy-cli==3.39.2"
  • >= 4.0.0, < 4.0.5 4.0.5
    pip install --upgrade "comfy-cli==4.0.5"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading is not feasible, consider implementing the following workarounds: 1. Run ComfyUI-Manager only on trusted networks. 2. Block external access via a firewall. 3. Run the application on localhost only without using the '--listen' option.

Conclusion

The CRLF Injection vulnerability in ComfyUI-Manager poses a significant risk to users who enable remote access. It is crucial to update to the latest patched versions or implement workarounds to mitigate potential threats. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for comfy-cli →

Share this vulnerability

FAQ

CRLF Injection is a type of attack where an attacker injects Carriage Return and Line Feed characters into a web application, potentially allowing them to manipulate HTTP headers or files.

Users running ComfyUI-Manager with the '--listen' option enabled are at risk, especially in environments where remote access is allowed.

Exploitation of this vulnerability can lead to unauthorized modifications of the configuration file, which may alter security settings or application behavior.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.

The CVSS score for this vulnerability is 7.5, indicating a high level of severity.

How To Fix

Latest published version: 1.23.0 as of 23 Oct 2026

pip install --upgrade "comfy-cli==1.23.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 3.39.2 3.39.2
    pip install --upgrade "comfy-cli==3.39.2"
  • >= 4.0.0, < 4.0.5 4.0.5
    pip install --upgrade "comfy-cli==4.0.5"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback