CSRF in Comfy Comfyui

CVE-2024-10481

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.

Vulnerability class: CSRF (Cross-Site Request Forgery)

EPSS: 0.002 (11.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-10481?
CVE-2024-10481 is a medium-severity vulnerability in Comfy Comfyui, classified under Cross-Site Request Forgery (CSRF). CVSS score: 6.5/10. Published 2025-03-20.
How severe is CVE-2024-10481?
Medium severity. CVSS v3 base score is 6.5 out of 10.