Skip to main content

Comfyui CVE-2026-6589

| EUVDEUVD-2026-23731 LOW
Cross-Site Request Forgery (CSRF) (CWE-352)
2026-04-20 VulDB
2.1
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft malicious webpage with CSRF payload
  2. Delivery
    Host on attacker-controlled site
  3. Exploit
    Social engineer user to visit while logged into ComfyUI
  4. Install
    Browser sends authenticated request without CSRF token validation
  5. C2
    Server accepts forged request via create_origin_only_middleware
  6. Execute
    Attacker modifies ComfyUI application state
  7. Impact
    Impact 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).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

comfyui 0.7
comfyui 0.4
comfyui 0.2
comfyui 0.6
comfyui 0.8
comfyui 0.12
comfyui 0.5
comfyui 0.1
comfyui 0.9
comfyui 0.13.0
comfyui 0.3
comfyui 0.10
comfyui 0.11

Affected Packages

euvd comfyui no fix

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

NVD PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
Severity Changed
Apr 29, 2026 - 01:12 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:12 NVD
5.3 (MEDIUM) 2.1 (LOW)
PoC Detected
Apr 29, 2026 - 01:00 vuln.today
Public exploit code
CVSS changed
Apr 20, 2026 - 01:22 NVD
4.3 (MEDIUM) 5.3 (MEDIUM)
CVE Published
Apr 20, 2026 - 00:30 nvd
LOW 2.1

DescriptionCVE.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

EPSS Score
0.0%
Top 97% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy