Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft malicious webpage with CSRF payload
-
DeliveryHost on attacker-controlled site
-
ExploitSocial engineer user to visit while logged into ComfyUI
-
InstallBrowser sends authenticated request without CSRF token validation
-
C2Server accepts forged request via create_origin_only_middleware
-
ExecuteAttacker modifies ComfyUI application state
-
ImpactImpact limited to workflow/model parameter changes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | User must have an active authenticated session with ComfyUI at the time the CSRF payload is delivered. The ComfyUI server must be accessible over the network (local, private network, or public internet). The user must visit an attacker-controlled webpage or click a malicious link while authenticated to ComfyUI in the same browser or browser tab. The create_origin_only_middleware function must fail to properly validate request origin via CSRF token or strict origin checking. The vulnerability is NOT exploitable against ComfyUI instances with properly configured same-site cookies, strict CSP policies, or correct CSRF token validation. Exploitation is limited to low-integrity modifications; attackers cannot read sensitive data (no confidentiality impact) or cause denial of service (no availability impact). |
| Impact | This vulnerability presents moderate real-world risk with several mitigating factors. The CVSS score of 4.3 and CVSS:3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N indicate network-accessible exploitation without authentication but with mandatory user interaction and limited integrity impact (I:L). The EPSS probability is not provided, limiting quantitative risk estimation. The E:P (Exploit Code Mature) field confirms publicly available POC code, and the RL:X (Unknown Release) suggests no vendor patch timeline has been communicated. The vulnerability requires user interaction (UI:R), which significantly reduces real-world exploitation probability compared to fully automated attacks; an attacker must trick a user into visiting a malicious site or clicking a link while the victim has ComfyUI open. The integrity impact is classified as Low (I:L), meaning attackers can only make limited modifications to application data rather than achieving complete compromise. The lack of vendor response raises concerns about patch availability and security posture, but the UI requirement and low integrity impact suggest this is not a critical priority compared to pre-authentication remote code execution flaws. Organizations using ComfyUI in multi-user or internet-facing deployments should prioritize patching once available; isolated or development-only instances face lower risk. |
| Exploit ScenarioDerived | An attacker crafts a malicious webpage or email containing a hidden form or script that targets the ComfyUI server running on a victim's local network or public instance. When a user with an active ComfyUI session visits the attacker's page, the embedded request (e.g., an image tag, fetch request, or form submission) exploits the CSRF vulnerability in create_origin_only_middleware to perform unauthorized actions such as modifying model settings, altering workflow parameters, or injecting malicious nodes into the user's session. The user may not notice the attack if the integrity impact is subtle (e.g., a workflow parameter change that goes undetected until workflow execution). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 20, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Comfyui gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionCVE.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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Related Vulnerabilities in ComfyUI Multiple Vulnerabilities
View all 5Arbitrary file write via path traversal in ComfyUI before 0.30.0 lets an attacker place attacker-controlled content anyw
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 (Comfy-Org) before 0.28.0 lets an attacker upload HTML or SVG to the per-user use
Stored cross-site scripting in ComfyUI before 0.28.0 lets an attacker upload a malicious SVG that the /view endpoint ser
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
EUVD-2026-23731
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB