Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
8DescriptionCVE.org
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.
AnalysisAI
Cross-site request forgery (CSRF) in ComfyUI up to version 0.13.0 allows unauthenticated remote attackers to modify application state via crafted requests to the create_origin_only_middleware function in server.py. The vulnerability requires user interaction (clicking a malicious link or visiting an attacker-controlled site) but has low integrity impact and is publicly exploitable with proof-of-concept code available. The vendor has not responded to early disclosure notification.
Technical ContextAI
ComfyUI is a node-based UI for Stable Diffusion and other generative AI models. The vulnerability resides in the create_origin_only_middleware function within server.py, which is responsible for managing cross-origin request policies. The root cause is classified under CWE-352 (Cross-Site Request Forgery), indicating insufficient CSRF token validation or origin verification when processing state-modifying requests. The CVSS vector AV:N/AC:L/PR:N/UI:R indicates the flaw is exploitable over the network without authentication but requires user interaction (UI:R), such as clicking a malicious link while authenticated to ComfyUI. The affected CPE encompasses all versions of ComfyUI up to and including 0.13.0.
RemediationAI
Upgrade ComfyUI to a version released after the disclosure; however, no specific patched version number is confirmed in available data due to lack of vendor response. Until an official patch is available, apply these compensating controls: (1) Implement strict Content Security Policy (CSP) headers restricting frame-ancestors and preventing cross-site framing, which mitigates CSRF by reducing the attack surface; (2) Configure SameSite=Strict cookies for all session tokens to prevent cookie transmission in cross-site requests, though this may affect legitimate cross-domain workflows; (3) Restrict ComfyUI access to authenticated users only and use a WAF or reverse proxy to enforce origin whitelisting, explicitly rejecting requests from untrusted origins; (4) Deploy ComfyUI behind a CSRF token validation layer (e.g., nginx module or reverse proxy middleware) that enforces token verification on all state-modifying requests (POST/PUT/DELETE). Monitor the VulDB advisory and ComfyUI GitHub repository for patch announcements. Contact the ComfyUI maintainers directly via GitHub issues if patch status remains unclear.
comfyanonymous/comfyui version v0.2.4 suffers from a non-blind Server-Side Request Forgery (SSRF) vulnerability. Rated h
A stored cross-site scripting (XSS) vulnerability exists in comfyanonymous/comfyui version 0.2.2 and possibly earlier. R
Remote code execution in ComfyUI v0.23.0 (and all prior 0.x releases) lets unauthenticated attackers run arbitrary Pytho
Stored cross-site scripting in ComfyUI before 0.28.0 lets an attacker upload a malicious SVG that the /view endpoint ser
Stored cross-site scripting in ComfyUI (Comfy-Org) before 0.28.0 lets an attacker upload HTML or SVG to the per-user use
Unauthenticated information disclosure in ComfyUI (comfy-org/comfyui) before 0.28.0 lets remote attackers read arbitrary
Path traversal arbitrary file read in ComfyUI (comfy-org) before 0.28.0 lets remote unauthenticated attackers probe arbi
Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files on the serv
Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files via manipul
Cross-site scripting (XSS) in ComfyUI up to version 0.13.0 allows authenticated remote attackers to inject malicious scr
Stored cross-site scripting (XSS) in ComfyUI's userdata endpoint (getuserdata function in app/user_manager.py) allows au
A CSRF vulnerability exists in comfyanonymous/comfyui versions up to v0.2.2. Rated medium severity (CVSS 6.5), this vuln
Same weakness CWE-352 – Cross-Site Request Forgery (CSRF)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-23731