Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Network-reachable unauthenticated upload with no auth by default (PR:N), victim must open the file (UI:R), and script executing across origin into the browser justifies S:C with C:H/I:L.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
4DescriptionCVE.org
ComfyUI is a modular diffusion model GUI, api and backend with a graph/nodes interface. Prior to 0.28.0, the /view endpoint served uploaded SVG files inline because image/svg+xml and related XML content types were absent from the dangerous-content-type handling, allowing stored cross-site scripting in the ComfyUI origin. This issue is fixed in version 0.28.0.
AnalysisAI
Stored cross-site scripting in ComfyUI before 0.28.0 lets an attacker upload a malicious SVG that the /view endpoint serves inline in the application origin, executing arbitrary JavaScript in the browser of any user who opens it. Because image/svg+xml and related XML content types were missing from the dangerous-content-type list, uploaded markup rendered instead of downloading; a victim viewing the file triggers script that runs with full access to the ComfyUI session. No public exploit was identified at time of analysis and it is not listed in CISA KEV, but the fix commit and released version 0.28.0 are confirmed by the vendor advisory.
Technical ContextAI
ComfyUI is a Python (aiohttp/web) node-based GUI and backend for running diffusion image-generation models, with file endpoints (/view, /userdata, asset download) that serve user-uploaded content. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): the handler maintained a hardcoded set of 'dangerous' MIME types (text/html, application/xhtml+xml, text/javascript, text/css) that omitted image/svg+xml, application/xml, text/xml and other XML dialects. SVG is an XML document that can carry inline <script> and event handlers, so when served with Content-Type: image/svg+xml and inline disposition, browsers execute it in the serving origin. The fix centralizes detection in folder_paths.is_dangerous_content_type(), which normalizes charset/casing parameters and treats any *+xml or */xml type as dangerous, then forces Content-Disposition: attachment, Content-Type override to application/octet-stream, and X-Content-Type-Options: nosniff across /view and /userdata. CPE cpe:2.3:a:comfy-org:comfyui:*:*:*:*:*:*:*:* identifies the affected product.
RemediationAI
Upgrade to ComfyUI 0.28.0 or later, which is the vendor-released patch that centralizes dangerous-content-type handling and forces uploaded SVG/HTML/XML to download with Content-Disposition: attachment and X-Content-Type-Options: nosniff (advisory GHSA-rj8c-c4p8-3c5h; release https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0; commit 96e0e3585b41e1417442eaa14ec57f7b4ffcb5e0). If immediate patching is not possible, restrict who can reach and upload to the instance by binding ComfyUI to localhost or placing it behind an authenticating reverse proxy, and do not expose it to untrusted or multi-user networks; as a compensating control, front the /view and /userdata endpoints with a proxy that rewrites Content-Type to application/octet-stream and adds Content-Disposition: attachment plus X-Content-Type-Options: nosniff for user-served files. The trade-off of forcing downloads is that any legitimately inline-rendered user content will now download instead of displaying, and restricting to localhost removes remote/multi-user access entirely.
comfyanonymous/comfyui version v0.2.4 suffers from a non-blind Server-Side Request Forgery (SSRF) vulnerability. Rated h
A stored cross-site scripting (XSS) vulnerability exists in comfyanonymous/comfyui version 0.2.2 and possibly earlier. R
Remote code execution in ComfyUI v0.23.0 (and all prior 0.x releases) lets unauthenticated attackers run arbitrary Pytho
Stored cross-site scripting in ComfyUI (Comfy-Org) before 0.28.0 lets an attacker upload HTML or SVG to the per-user use
Unauthenticated information disclosure in ComfyUI (comfy-org/comfyui) before 0.28.0 lets remote attackers read arbitrary
Path traversal arbitrary file read in ComfyUI (comfy-org) before 0.28.0 lets remote unauthenticated attackers probe arbi
Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files on the serv
Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files via manipul
Cross-site request forgery (CSRF) in ComfyUI up to version 0.13.0 allows unauthenticated remote attackers to modify appl
Cross-site scripting (XSS) in ComfyUI up to version 0.13.0 allows authenticated remote attackers to inject malicious scr
Stored cross-site scripting (XSS) in ComfyUI's userdata endpoint (getuserdata function in app/user_manager.py) allows au
A CSRF vulnerability exists in comfyanonymous/comfyui versions up to v0.2.2. Rated medium severity (CVSS 6.5), this vuln
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-51400