Skip to content
Heist/ feed
Back to feed
Medium

Cross-Site Request Forgery (CSRF) in comfyanonymous/comfyui

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-10481
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 18:45 UTC · Revision 1

Source evidence

Cross-Site Request Forgery (CSRF) in comfyanonymous/comfyui

core-osv · Original source

Published 20 Mar 2025, 10:09 UTC

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.

osv:CVE-2024-10481
Complete source record
{
  "id": "c1a7197de0979548f12abf3437f6549cc16ab1999fb685089204c4da9d8288eb",
  "url": "https://osv.dev/vulnerability/CVE-2024-10481",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Cross-Site Request Forgery (CSRF) in comfyanonymous/comfyui",
    "summary": "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.",
    "evidence": "osv:CVE-2024-10481",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-10481",
      "aliases": [
        "CVE-2024-10481"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/Comfy-Org/ComfyUI",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "0c7c98a965bff25f9398a4b28dfc274bedad9f6c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:comfy:comfyui:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.2.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.2.2",
            "v0.2.1",
            "v0.2.0",
            "v0.1.3",
            "v0.1.2",
            "v0.1.1",
            "v0.1.0",
            "v0.0.8",
            "v0.0.7",
            "v0.0.6",
            "v0.0.5",
            "v0.0.4",
            "v0.0.2",
            "v0.0.1",
            "latest"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-10481.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.316868637Z",
      "provider": "osv",
      "references": [
        "https://huntr.com/bounties/f4d5bfb5-6ff1-4356-b81f-f8c01d2e6ded",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10481.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-10481"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-352"
        ],
        "cna_assigner": "@huntr_ai",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10481.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-10481",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505828,
  "published_at": "2025-03-20T10:09:02.407+00:00"
}