Skip to content
HighVulnerability

CVE-2026-56671: ComfyUI unauthenticated path traversal in model preview endpoint

Identifier
CVE-2026-56671
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2026-56671 affects ComfyUI before 0.28.0, where get_model_preview in app/model_manager.py joins an unrestricted filename route capture to a model directory without a containment check. An unauthenticated remote attacker can use traversal, encoded traversal, absolute paths, or an unbounded path_index to read image-decodable files and enumerate host paths. Disclosure is limited to files that Pillow can decode and re-encode as WEBP, plus a file-existence oracle and internal-path leakage through path_index errors.

Mitigation

Fixed in 0.28.0.