Description
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.
Published: 2026-07-31
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A stored cross‑site scripting flaw exists in ComfyUI’s /view endpoint. Because SVG files were served inline before version 0.28.0, an attacker who can upload a malicious SVG can embed JavaScript that executes in the context of the ComfyUI origin. This allows an attacker to manipulate the page, read user cookies, or perform actions that the victim’s browser would normally permit for that site.

Affected Systems

The vulnerability impacts installations of Comfy‑Org ComfyUI that are running any version prior to 0.28.0. No specific sub‑versions are listed, so any release earlier than 0.28.0 is considered affected.

Risk and Exploitability

The CVSS score of 8.2 indicates a high severity of the flaw, while the EPSS score is <1% and the vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the flaw by uploading a crafted SVG file to the /view endpoint, which requires write access to the upload location. The likely attack vector is through authenticated or compromised user accounts that have permission to upload or manipulate files. Once the page loads the stored SVG, the embedded script runs with the same privileges as the site, permitting a full range of client‑side attacks.

Generated by OpenCVE AI on August 2, 2026 at 04:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade ComfyUI to version 0.28.0 or later.
  • Disable inline rendering of SVG files on the /view endpoint by configuring the server to serve SVGs as generic binary attachments or by removing the endpoint entirely until patching; after that purge any previously uploaded SVGs.
  • If unable to upgrade immediately, block or delete all stored SVG files and restrict upload permissions to prevent malicious uploads; consider using file‑type validation to reject SVGs until the fix is applied.

Generated by OpenCVE AI on August 2, 2026 at 04:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 02 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Comfy
Comfy comfyui
Vendors & Products Comfy
Comfy comfyui

Fri, 31 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 31 Jul 2026 05:30:00 +0000

Type Values Removed Values Added
Description 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.
Title ComfyUI: Stored XSS via SVG file upload on the /view endpoint
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-31T19:00:49.766Z

Reserved: 2026-06-22T16:39:01.043Z

Link: CVE-2026-56670

cve-icon Vulnrichment

Updated: 2026-07-31T18:59:59.546Z

cve-icon NVD

Status : Received

Published: 2026-07-31T06:16:27.560

Modified: 2026-07-31T19:17:11.290

Link: CVE-2026-56670

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T19:30:17Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')