CVE-2026-6589 ComfyUI server.py create_origin_only_middleware cross-site request forgery

Medium 5.3 Published Updated

Attackers can perform cross-site request forgery against ComfyUI servers, potentially bypassing origin checks to execute unauthorized actions.

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-2026-6589?

CVE-2026-6589 is a medium-severity vulnerability in ComfyUI, published on 20 Apr 2026. 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 security vulnerability has been detected in ComfyUI up to 0.13.0. This affects the function create_origin_only_middleware of the file server.py. The manipulation leads to cross-site request forgery. The attack may be initiated remotely. The exploit has been disclosed publicly and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-862, CWE-352

Which versions are affected by CVE-2026-6589?

How do I fix CVE-2026-6589?

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

Is CVE-2026-6589 being exploited?

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

Sources

Also known as GHSA-8rf8-8h6f-fh89.

Is CVE-2026-6589 in your software?

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

Check your SBOMs for free