Skip to main content
CVE-2024-10481VulnerabilityPublished Updated

CVE-2024-10481: comfyanonymous/comfyui · Cross-Site Request Forgery (CSRF)

Affects comfyanonymous/comfyuiSource CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium.

Data as of 26 Oct 2026, 07:57 UTC

CVSS 3.0 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 13% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Mar 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
GitHubcomfyanonymous/comfyuipkg:github/comfyanonymous/comfyuiOther threatsAffected
  • <=0.2.2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should immediately assess their use of ComfyUI and determine if they are running vulnerable versions (up to v0.2.2). Since no official patches are currently linked, organizations should implement the following mitigations: 1) Restrict access to the ComfyUI interface to trusted networks or VPNs to reduce exposure to malicious websites. 2) Employ web application firewalls (WAFs) to detect and block suspicious API requests that do not originate from legitimate user actions. 3) Educate users about the risks of visiting untrusted websites while authenticated to ComfyUI. 4) If possible, implement custom CSRF protections such as validating origin or referer headers on API endpoints. 5) Monitor logs for unusual API activity, especially on /upload/image, /prompt, and /history endpoints. 6) Consider isolating ComfyUI usage to dedicated environments with minimal sensitive data. 7) Stay updated with the vendor or community for forthcoming patches and apply them promptly once available.

Description

A CSRF vulnerability exists in comfyanonymous/comfyui versions up to v0.2.2. This vulnerability allows attackers to host malicious websites that, when visited by authenticated ComfyUI users, can perform arbitrary API requests on behalf of the user. This can be exploited to perform actions such as uploading arbitrary files via the `/upload/image` endpoint. The lack of CSRF protections on API endpoints like `/upload/image`, `/prompt`, and `/history` leaves users vulnerable to unauthorized actions, which could be combined with other vulnerabilities such as stored-XSS to further compromise user sessions.

References

Community reviews

Loading reviews…