CVE-2026-56673
Received Received - Intake

Path Traversal in ComfyUI Prior to 0.28.0

Vulnerability report for CVE-2026-56673, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-31

Last updated on: 2026-07-31

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-31
Last Modified
2026-07-31
Generated
2026-07-31
AI Q&A
2026-07-31
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
comfyui comfyui to 0.28.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

ComfyUI before 0.28.0 has a path traversal flaw in folder_paths.get_annotated_filepath and exists_annotated_filepath. An unauthenticated POST request to /prompt with LoadImage or similar nodes can probe arbitrary host paths and read image-format files via /view. The VALIDATE_INPUTS method bypasses COMBO input-directory checks.

Detection Guidance

This vulnerability involves path traversal and file exfiltration via crafted POST requests to /prompt. Monitor network traffic for suspicious POST requests to /prompt endpoints using LoadImage or related nodes. Check server logs for unauthorized access attempts to arbitrary file paths. Ensure ComfyUI version is updated to 0.28.0 or later to prevent exploitation.

Impact Analysis

Attackers could access sensitive files on the server by crafting POST requests to probe paths and exfiltrate image files. This may lead to data leaks, unauthorized access to system files, or further exploitation depending on file contents.

Compliance Impact

This vulnerability could violate GDPR or HIPAA by enabling unauthorized access to personal or health data stored as image files. Organizations may face compliance breaches, legal penalties, and reputational damage if exploited.

Mitigation Strategies

Immediately upgrade ComfyUI to version 0.28.0 or later to patch the vulnerability. If upgrading is not possible, restrict network access to the /prompt endpoint and disable LoadImage and related nodes until patched. Review and audit file system permissions to limit exposure to potential exfiltration paths.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56673. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart