Description
ComfyUI is a modular diffusion model GUI, API, and backend with a graph-and-node interface. Prior to 0.28.0, folder_paths.get_annotated_filepath and exists_annotated_filepath join workflow-controlled annotated filenames to a base directory without a containment check, allowing an unauthenticated crafted POST /prompt workflow using LoadImage or sibling nodes to probe arbitrary host paths and exfiltrate image-format files through /view. LoadImage defines a VALIDATE_INPUTS method, which causes the execution engine to skip COMBO (input-directory) validation. Affected nodes include LoadImage, LoadImageMask, LoadImageOutput, LoadAudio, LoadLatent, LoadVideo, and Load3D. This issue is fixed in version 0.28.0.
Published: 2026-07-31
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

ComfyUI, a modular diffusion model GUI and API, had a path traversal vulnerability in nodes that load images and media. The flaw allows an attacker to craft a POST request to the /prompt API with a malicious LoadImage or sibling node, bypassing the normal directory validation. This leads to arbitrary file existence checks and the ability to exfiltrate image‑format files from the host system, compromising confidentiality and potentially integrity of stored data. The weakness is a classic path traversal issue (CWE‑22).

Affected Systems

The vulnerability affects all installations of ComfyUI prior to version 0.28.0. Products from the Comfy‑Org team, including LoadImage, LoadImageMask, LoadImageOutput, LoadAudio, LoadLatent, LoadVideo, and Load3D nodes, are impacted. Users running any earlier release are at risk.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity. The EPSS score is <1%, indicating a very low probability of exploitation but still possible. The flaw is exploitable over the network through an unauthenticated HTTP POST to the /prompt endpoint. Because the issue is not listed in the CISA KEV catalog, it has not yet been widely reported as exploited in the wild, though the attack path is straightforward and can be automated. Patch status is critical; applying the 0.28.0 release removes the containment check and mitigates the risk.

Generated by OpenCVE AI on August 3, 2026 at 10:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade ComfyUI to version 0.28.0 or later, which removes the unsafe path handling code.
  • If an upgrade is not immediately possible, restrict access to the /prompt endpoint to authenticated and authorized users only, and validate the node inputs to ensure no traversal characters are accepted.
  • Review and adjust permissions for the data directories used by ComfyUI, limiting read access to necessary users and preventing the system from exposing image files via /view.

Generated by OpenCVE AI on August 3, 2026 at 10:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 02 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Comfy
Comfy comfyui
Vendors & Products Comfy
Comfy comfyui

Fri, 31 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 31 Jul 2026 05:30:00 +0000

Type Values Removed Values Added
Description ComfyUI is a modular diffusion model GUI, API, and backend with a graph-and-node interface. Prior to 0.28.0, folder_paths.get_annotated_filepath and exists_annotated_filepath join workflow-controlled annotated filenames to a base directory without a containment check, allowing an unauthenticated crafted POST /prompt workflow using LoadImage or sibling nodes to probe arbitrary host paths and exfiltrate image-format files through /view. LoadImage defines a VALIDATE_INPUTS method, which causes the execution engine to skip COMBO (input-directory) validation. Affected nodes include LoadImage, LoadImageMask, LoadImageOutput, LoadAudio, LoadLatent, LoadVideo, and Load3D. This issue is fixed in version 0.28.0.
Title ComfyUI: Path traversal in LoadImage via the /prompt API allows arbitrary file existence probing and image exfiltration
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-31T19:31:07.613Z

Reserved: 2026-06-22T16:39:01.043Z

Link: CVE-2026-56673

cve-icon Vulnrichment

Updated: 2026-07-31T19:30:34.935Z

cve-icon NVD

Status : Received

Published: 2026-07-31T06:16:30.520

Modified: 2026-07-31T20:16:52.487

Link: CVE-2026-56673

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T10:15:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')