← Back to CVE Explorer

CVE-2026-56672

Full vulnerability record from the local CVENow database.

Description

ComfyUI is a node-based diffusion model GUI, API, and backend. Prior to 0.28.0, GET /userdata/{file} served user-controlled HTML and SVG files with extension-derived content types, allowing stored cross-site scripting in the ComfyUI origin and access to browser-stored API tokens, settings, workflows, and authenticated-equivalent API calls. The handler used web.FileResponse(path), so an uploaded .html/.svg was served as text/html/image/svg+xml. POST /userdata stores arbitrary request bodies (confined to the user's userdata directory). When a victim navigated to the file URL, the embedded script executed same-origin. The /view endpoint already forced dangerous MIME types to download; that protection had never been applied to /userdata. This issue is fixed in version 0.28.0.

Severity
HIGH
CVSS score
8.2 (v3.1)
Vulnerability status
Awaiting Analysis
Source identifier
Published
2026-07-31 06:16:30.170000
Last modified
2026-10-23 23:10:00.157000
View original CVE JSON
{
  "id": "CVE-2026-56672",
  "sourceIdentifier": "[email protected]",
  "published": "2026-07-31T06:16:30.170",
  "lastModified": "2026-10-23T23:10:00.157",
  "vulnStatus": "Awaiting Analysis",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "ComfyUI is a node-based diffusion model GUI, API, and backend. Prior to 0.28.0, GET /userdata/{file} served user-controlled HTML and SVG files with extension-derived content types, allowing stored cross-site scripting in the ComfyUI origin and access to browser-stored API tokens, settings, workflows, and authenticated-equivalent API calls. The handler used web.FileResponse(path), so an uploaded .html/.svg was served as text/html/image/svg+xml. POST /userdata stores arbitrary request bodies (confined to the user's userdata directory). When a victim navigated to the file URL, the embedded script executed same-origin. The /view endpoint already forced dangerous MIME types to download; that protection had never been applied to /userdata. This issue is fixed in version 0.28.0."
    },
    {
      "lang": "es",
      "value": "ComfyUI es una GUI, API y backend de modelo de difusión basado en nodos. Antes de la versión 0.28.0, GET /userdata/{file} servía archivos HTML y SVG controlados por el usuario con tipos de contenido derivados de la extensión, permitiendo cross-site scripting almacenado en el origen de ComfyUI y acceso a tokens de API almacenados en el navegador, configuraciones, flujos de trabajo y llamadas a la API equivalentes a autenticadas. El gestor utilizaba web.FileResponse(path), por lo que un .html/.svg subido se servía como text/html/image/svg+xml. POST /userdata almacena cuerpos de solicitud arbitrarios (confinados al directorio userdata del usuario). Cuando una víctima navegaba a la URL del archivo, el script incrustado se ejecutaba con el mismo origen. El endpoint /view ya forzaba la descarga de tipos MIME peligrosos; esa protección nunca se había aplicado a /userdata. Este problema está solucionado en la versión 0.28.0."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "Comfy-Org",
          "product": "ComfyUI",
          "versions": [
            {
              "version": "< 0.28.0",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N",
          "baseScore": 8.2,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "REQUIRED",
          "scope": "CHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "LOW",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 4.7
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-07-31T11:06:11.409441Z",
          "id": "CVE-2026-56672",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-79"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/Comfy-Org/ComfyUI/commit/96e0e3585b41e1417442eaa14ec57f7b4ffcb5e0",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-53g8-45wq-pcv8",
      "source": "[email protected]"
    }
  ]
}