top of page
perceptive_background_267k.jpg

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

Click to open the original link from this advisory

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:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Deze website toont informatie afkomstig van externe bronnen; Perceptive aanvaardt geen verantwoordelijkheid voor de juistheid, volledigheid of actualiteit van deze informatie.

bottom of page