CVE-2024-10481 Cross-Site Request Forgery (CSRF) in comfyanonymous/comfyui
Attackers can trick authenticated users into performing unauthorized actions like file uploads via malicious websites due to missing CSRF protections.
- 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-2024-10481?
CVE-2024-10481 is a medium-severity vulnerability in comfyanonymous/comfyui, published on 20 Mar 2025. 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 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.
Weakness: CWE-352
Which versions are affected by CVE-2024-10481?
It affects 1 product.
Products include Comfy Comfyui.
How do I fix CVE-2024-10481?
No fix has been published for CVE-2024-10481 yet. Limit exposure of the affected software until one is available.
Is CVE-2024-10481 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10481 exists.
Other vulnerabilities in comfyanonymous/comfyui
Sources
Also known as GHSA-h9jx-rcv4-cgqg.