


Perceptive Security
SOC/SIEM Consultancy

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 unre…
Published:
31 juli 2026 om 00:00:00
Alert date:
31 juli 2026 om 09:02:41
Source:
nvd.nist.gov
Web Technologies, Emerging Technologies
CVE-2026-56671 is a path traversal vulnerability in ComfyUI versions prior to 0.28.0 affecting the get_model_preview function in app/model_manager.py. The vulnerability allows unauthenticated remote attackers to read image-decodable files outside the intended model directory by supplying unsanitized filenames including literal ../, percent-encoded traversal sequences, or absolute paths via an unrestricted route capture. The path was constructed using os.path.join(folder, filename) without any containment check, and the path_index parameter was also unbounded, enabling host path enumeration via error messages. Disclosed files are limited to those decodable by Pillow (re-encoded as WEBP), but the bug also serves as a file-existence oracle and leaks internal path information. The issue has been patched in ComfyUI version 0.28.0. Users are strongly advised to upgrade immediately to mitigate unauthorized file disclosure risks.
Technical details
Mitigation steps:
Affected products:
ComfyUI
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-56671
https://github.com/Comfy-Org/ComfyUI/pull/14734
https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0
https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-pj59-g5vv-74q4
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
