Skip to main content

ComfyUI CVE-2026-56670

| EUVDEUVD-2026-51400 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-07-31 GitHub_M
8.2
CVSS 3.1 · Vendor: GitHub_M
Share

Severity by source

Vendor (GitHub_M) PRIMARY
8.2 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
vuln.today AI
8.2 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N
SUSE
HIGH
qualitative

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

4
Patch available
Jul 31, 2026 - 06:15 EUVD
Source Code Evidence Fetched
Jul 31, 2026 - 05:46 vuln.today
Analysis Generated
Jul 31, 2026 - 05:46 vuln.today
CVE Published
Jul 31, 2026 - 04:17 cve.org
HIGH 8.2

DescriptionCVE.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.

CVE-2024-12882 HIGH POC
7.5 Mar 20

comfyanonymous/comfyui version v0.2.4 suffers from a non-blind Server-Side Request Forgery (SSRF) vulnerability. Rated h

CVE-2024-10099 MEDIUM POC
6.1 Oct 17

A stored cross-site scripting (XSS) vulnerability exists in comfyanonymous/comfyui version 0.2.2 and possibly earlier. R

CVE-2026-68771 CRITICAL
9.3 Jul 31

Remote code execution in ComfyUI v0.23.0 (and all prior 0.x releases) lets unauthenticated attackers run arbitrary Pytho

CVE-2026-56672 HIGH
8.2 Jul 31

Stored cross-site scripting in ComfyUI (Comfy-Org) before 0.28.0 lets an attacker upload HTML or SVG to the per-user use

CVE-2026-56671 HIGH
7.5 Jul 31

Unauthenticated information disclosure in ComfyUI (comfy-org/comfyui) before 0.28.0 lets remote attackers read arbitrary

CVE-2026-56673 HIGH
7.5 Jul 31

Path traversal arbitrary file read in ComfyUI (comfy-org) before 0.28.0 lets remote unauthenticated attackers probe arbi

CVE-2026-6591 LOW POC
2.1 Apr 20

Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files on the serv

CVE-2026-6590 LOW POC
2.1 Apr 20

Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files via manipul

CVE-2026-6589 LOW POC
2.1 Apr 20

Cross-site request forgery (CSRF) in ComfyUI up to version 0.13.0 allows unauthenticated remote attackers to modify appl

CVE-2026-6593 LOW POC
2.0 Apr 20

Cross-site scripting (XSS) in ComfyUI up to version 0.13.0 allows authenticated remote attackers to inject malicious scr

CVE-2026-6592 LOW POC
2.0 Apr 20

Stored cross-site scripting (XSS) in ComfyUI's userdata endpoint (getuserdata function in app/user_manager.py) allows au

CVE-2024-10481 MEDIUM POC
6.5 Mar 20

A CSRF vulnerability exists in comfyanonymous/comfyui versions up to v0.2.2. Rated medium severity (CVSS 6.5), this vuln

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Tumbleweed Fixed

Share

CVE-2026-56670 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy