CVE-2024-10099 Stored XSS in comfyanonymous/comfyui

Medium 6.1 Published Updated

Attackers can execute arbitrary JavaScript by uploading malicious HTML files, affecting users of the ComfyUI web interface.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-10099?

CVE-2024-10099 is a medium-severity cross-site scripting vulnerability in comfyanonymous/comfyui, published on 17 Oct 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A stored cross-site scripting (XSS) vulnerability exists in comfyanonymous/comfyui version 0.2.2 and possibly earlier. The vulnerability occurs when an attacker uploads an HTML file containing a malicious XSS payload via the `/api/upload/image` endpoint. The payload is executed when the file is viewed through the `/view` API endpoint, leading to potential execution of arbitrary JavaScript code.

Weakness: CWE-79

Which versions are affected by CVE-2024-10099?

It affects 1 product.

Products include Comfy Comfyui.

How do I fix CVE-2024-10099?

No fix has been published for CVE-2024-10099 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-10099 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10099 exists.

Sources

Also known as GHSA-5269-hjm8-7x5f.

Is CVE-2024-10099 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free