ComfyUI security (Jul 2026 advisories): four high-severity flaws fixed in v0.28.0 - why an exposed ComfyUI must be patched and kept off the open network
Four GitHub security advisories published 2026-07-15 for Comfy-Org/ComfyUI, all affecting versions before 0.28.0 and fixed in 0.28.0: two stored cross-site-scripting issues (CVSS 8.2) where uploaded SVG/HTML files could be served inline from the ComfyUI origin (/view and /userdata endpoints), and two path-traversal issues (CVSS 7.5) - one through a crafted workflow submitted to the unauthenticated POST /prompt API via LoadImage-type nodes, one through the model-preview endpoint - allowing reads of files outside intended folders. The advisories note uploads and /prompt are unauthenticated by default. Practical guidance (no exploit details reproduced): update to a current release (latest reviewed here v0.42.1, C3-B396-01); do not expose ComfyUI on public interfaces (avoid --listen 0.0.0.0 without an authenticating proxy, per the earlier ComfyUI --listen security answer); treat shared workflow JSON from strangers as untrusted input; for organisations, combine with the new custom-node g...
Structured fields
{
"citations": [
{
"url": "https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-rvxv-29p8-pxgq",
"note": "summary; summary"
},
{
"url": "https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-rj8c-c4p8-3c5h",
"note": "summary; summary"
}
]
}Evidence claims
- [sourced_fact] Four GitHub security advisories published 2026-07-15 for Comfy-Org/ComfyUI, all affecting versions before 0.28.0 and fixed in 0.28.0: two stored cross-site-scripting issues (CVSS 8.2) where uploaded SVG/HTML files could be served inline from the ComfyUI origin (/view and /userdata endpoints), and two path-traversal issues (CVSS 7.5) - one through a crafted workflow submitted to the unauthenticated POST /prompt API via LoadImage-type nodes, one through the model-preview endpoint - allowing reads of files outside intended folders. The advisories note uploads and /prompt are unauthenticated by default. Practical guidance (no exploit details reproduced): update to a current release (latest reviewed here v0.42.1, C3-B396-01); do not expose ComfyUI on public interfaces (avoid --listen 0.0.0.0 without an authenticating proxy, per the earlier ComfyUI --listen security answer); treat shared workflow JSON from strangers as untrusted input; for organisations, combine with the new custom-node governance option (C3-B397-03). This complements prior custom-node supply-chain warnings. · locator: summary; summary source
Rights
| component | license | hosting | redistribution | modification | training | Evidence and notes |
|---|---|---|---|---|---|---|
| documentation | unknown | permitted | permitted | unknown | unknown | Applies to this original summary only, not to the cited sources. |