Skip to main content

ComfyUI CVE-2026-56671

| EUVDEUVD-2026-51401 HIGH
Path Traversal (CWE-22)
2026-07-31 GitHub_M
7.5
CVSS 3.1 · Vendor: GitHub_M
Share

Severity by source

Vendor (GitHub_M) PRIMARY
7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI
7.5 HIGH

Unauthenticated network traversal with low complexity (PR:N/AC:L/AV:N) yields file/host-path disclosure (C:H) but no write or availability impact (I:N/A:N).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

4
Patch available
Jul 31, 2026 - 06:15 EUVD
Source Code Evidence Fetched
Jul 31, 2026 - 05:47 vuln.today
Analysis Generated
Jul 31, 2026 - 05:47 vuln.today
CVE Published
Jul 31, 2026 - 04:21 cve.org
HIGH 7.5

DescriptionCVE.org

ComfyUI is a modular diffusion model GUI, api and backend with a graph/nodes interface. Prior to 0.28.0, get_model_preview in app/model_manager.py joins an unrestricted filename route capture to a selected model directory without a containment check, allowing an unauthenticated remote attacker to use traversal, encoded traversal, absolute paths, or an unbounded path_index to read image-decodable files and enumerate host paths. get_model_preview (app/model_manager.py) built the path with os.path.join(folder, filename) where filename is an unrestricted {filename:.*} route capture. Literal ../, percent-encoded %2e%2e%2f, and absolute paths all escaped the model directory; path_index was also unbounded. The target file is piped through Pillow and re-encoded as WEBP, so disclosure is limited to image-decodable files plus a file-existence/enumeration oracle (and internal-path leakage via path_index errors). This issue is fixed in version 0.28.0.

AnalysisAI

Unauthenticated information disclosure in ComfyUI (comfy-org/comfyui) before 0.28.0 lets remote attackers read arbitrary image-decodable files and enumerate the host filesystem via the get_model_preview endpoint, which joins an unrestricted {filename:.*} route capture to the model directory with no containment check (CWE-22). Attackers can use literal ../, percent-encoded %2e%2e%2f, absolute paths, or an unbounded path_index to escape the model folder; disclosure is bounded to files Pillow can decode plus a file-existence/path-enumeration oracle. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Reach ComfyUI web server
Delivery
Send model-preview request with traversal filename
Exploit
Escape model directory via ../ or absolute path
Execution
Server decodes file through Pillow
Persist
Read image or observe existence oracle
Impact
Enumerate host paths and internal structure

Vulnerability AssessmentAI

Exploitation Exploitation requires network access to ComfyUI's built-in web server and a reachable model preview request handled by get_model_preview in app/model_manager.py on any version before 0.28.0 - no authentication, credentials, or user interaction are needed (AV:N/AC:L/PR:N/UI:N against default configurations, since ComfyUI ships without authentication). … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, base 7.5) indicates a network-reachable, low-complexity, unauthenticated read primitive with no integrity or availability impact - consistent with the description of an unauthenticated remote traversal oracle. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario A remote attacker who can reach the ComfyUI HTTP interface sends a crafted request to the model preview endpoint with a filename such as ../../../../ or an absolute path, using literal or percent-encoded traversal, to enumerate host directories and read any image-decodable file outside the model folder. By observing successful WEBP responses versus errors (including path_index error messages), the attacker maps the filesystem and confirms file existence. …
Remediation Vendor-released patch: upgrade to ComfyUI 0.28.0 or later (https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0), which adds path normalization and a realpath-based is_within_directory() containment check in app/model_manager.py plus validation of the filename and path_index parameters; see advisory GHSA-pj59-g5vv-74q4 and PR #14734. … Detailed patch versions, workarounds, and compensating controls in full report.

Recommended ActionAI

Within 24 hours, inventory all ComfyUI deployments and identify those running versions before 0.28.0; if any are internet-facing, restrict network access immediately. …

Sign in for detailed remediation steps and compensating controls.

Threat intelligence, references, and detailed analysis are available after sign-in.

CVE-2024-12882 HIGH POC
7.5 Mar 20

comfyanonymous/comfyui version v0.2.4 suffers from a non-blind Server-Side Request Forgery (SSRF) vulnerability. Rated h

CVE-2024-10099 MEDIUM POC
6.1 Oct 17

A stored cross-site scripting (XSS) vulnerability exists in comfyanonymous/comfyui version 0.2.2 and possibly earlier. R

CVE-2026-68771 CRITICAL
9.3 Jul 31

Remote code execution in ComfyUI v0.23.0 (and all prior 0.x releases) lets unauthenticated attackers run arbitrary Pytho

CVE-2026-56670 HIGH
8.2 Jul 31

Stored cross-site scripting in ComfyUI before 0.28.0 lets an attacker upload a malicious SVG that the /view endpoint ser

CVE-2026-56672 HIGH
8.2 Jul 31

Stored cross-site scripting in ComfyUI (Comfy-Org) before 0.28.0 lets an attacker upload HTML or SVG to the per-user use

CVE-2026-56673 HIGH
7.5 Jul 31

Path traversal arbitrary file read in ComfyUI (comfy-org) before 0.28.0 lets remote unauthenticated attackers probe arbi

CVE-2026-6591 LOW POC
2.1 Apr 20

Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files on the serv

CVE-2026-6590 LOW POC
2.1 Apr 20

Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files via manipul

CVE-2026-6589 LOW POC
2.1 Apr 20

Cross-site request forgery (CSRF) in ComfyUI up to version 0.13.0 allows unauthenticated remote attackers to modify appl

CVE-2026-6593 LOW POC
2.0 Apr 20

Cross-site scripting (XSS) in ComfyUI up to version 0.13.0 allows authenticated remote attackers to inject malicious scr

CVE-2026-6592 LOW POC
2.0 Apr 20

Stored cross-site scripting (XSS) in ComfyUI's userdata endpoint (getuserdata function in app/user_manager.py) allows au

CVE-2024-10481 MEDIUM POC
6.5 Mar 20

A CSRF vulnerability exists in comfyanonymous/comfyui versions up to v0.2.2. Rated medium severity (CVSS 6.5), this vuln

Share

CVE-2026-56671 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy