CVE-2026-56670

ComfyUI: Stored XSS via SVG file upload on the /view endpoint

Published Jul 31, 2026 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Comfy
Comfy comfyui
Vendors & Products Comfy
Comfy comfyui
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 31, 2026, 7:00 PM
Reserved
Jun 22, 2026, 4:39 PM
Status
Awaiting Analysis
Published
Jul 31, 2026, 6:16 AM
Modified
Oct 23, 2026, 11:10 PM