CVE-2026-56671
highpriority · track · 0EPSS 0.010 · 62 %ileEUUSEPSS · scored 2026-10-27
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.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- Fixedcomfyuicisa_csaf_it
Fixed in 0.28.0.
https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.9–7.5
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (5)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- VA-26-238-01ComfyUI stored XSS and path traversal vulnerabilities2026-08-26csaf · cisa_csaf_itUS
ComfyUI contains multiple vulnerabilities, with the most severe impact being that a remote, unauthenticated attacker could read image-decodable files and probe arbitrary host paths.
also known as (1)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- https://github.com/Comfy-Org/ComfyUI/pull/14734enisa_euvd
- https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0enisa_euvd
- https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-pj59-g5vv-74q4enisa_euvd
- https://github.com/Comfy-Org/ComfyUI/pull/14734nvd
- https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0nvd
- https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-pj59-g5vv-74q4nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan