


Perceptive Security
SOC/SIEM Consultancy

ComfyUI is a node-based diffusion model GUI, API, and backend. Prior to 0.28.0, GET /userdata/{file} served user-controlled HTML and SVG files with extension-de…
Published:
30 juli 2026 om 22:00:00
Alert date:
31 juli 2026 om 07:02:41
Source:
nvd.nist.gov
Web Technologies, Emerging Technologies, Identity & Access
CVE-2026-56672 is a stored cross-site scripting (XSS) vulnerability in ComfyUI, a node-based diffusion model GUI and backend. Prior to version 0.28.0, the GET /userdata/{file} endpoint served user-uploaded HTML and SVG files with content types derived from file extensions, without forcing a download or sanitizing the MIME type. This allowed attackers to upload malicious .html or .svg files that, when visited by a victim, executed embedded scripts in the ComfyUI origin. Exploitation could lead to theft of browser-stored API tokens, settings, workflows, and the ability to make authenticated-equivalent API calls. The POST /userdata endpoint allowed arbitrary file content to be stored in the user's directory, enabling the attack vector. The /view endpoint had previously implemented MIME-type download forcing for dangerous files, but this protection was never applied to /userdata. The vulnerability has been patched in ComfyUI version 0.28.0 via a commit that enforces safe content-type handling for the userdata endpoint.
Technical details
Mitigation steps:
Affected products:
ComfyUI
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-56672
https://github.com/Comfy-Org/ComfyUI/commit/96e0e3585b41e1417442eaa14ec57f7b4ffcb5e0
https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0
https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-53g8-45wq-pcv8
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
