Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@comfyorg/comfyui-desktop-bridge-types

Latest version: v0.24.1

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: benceruleanlu-comfyorg, cbyrne, dante01yoon, huang47, mattmillerai, skishore23, terryjia, wei-hai-comfy
25 Versions
275.1K Downloads

Scan summary

@comfyorg/comfyui-desktop-bridge-types was last scanned on 30 Nov 2026 at version 0.24.1. Risk score 5 of 100 (low). No malicious behavior was detected.

  • Releases: 25 versions; the latest 4 were published within 7 days (24–30 Nov 2026).
  • Findings: 1 rule fired in version 0.24.1 (1 low). The score describes this version only.
  • Downloads: 275,075 downloads.

Versions

25 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.24.1 LATEST 30 Nov 2026 1 rule fired
0.24.0 30 Nov 2026 1 rule fired
0.23.0 25 Nov 2026 1 rule fired
0.21.0 24 Nov 2026 Not shown
0.19.0 22 Nov 2026 Not shown

Rules fired in 0.24.1: 1

Findings

1 Low

Findings for v0.24.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Repository belongs to a different package

The package points at a source repository whose own package manifest names a different package. Copies of well-known projects do this to borrow their reputation. A rename or a fork can look the same, so treat it as a prompt to check where the package really comes from.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.24.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@comfyorg/comfyui-desktop-bridge-types

TypeScript definitions for window.__comfyDesktop2, the API Comfy Desktop exposes to the frontend it hosts.

npm install --save-dev @comfyorg/comfyui-desktop-bridge-types
import type { ComfyDesktop2Bridge } from '@comfyorg/comfyui-desktop-bridge-types'

declare global {
  interface Window {
    __comfyDesktop2?: ComfyDesktop2Bridge
  }
}

Every member is optional for a reason

Which members actually exist at runtime is decided by the Desktop binary the user is running, and Desktop binaries update far more slowly than the frontend that ships into them. Callers must guard every access and carry a fallback — including when the member exists but rejects:

async function openModelAccessPage(url: string): Promise<void> {
  try {
    if ((await window.__comfyDesktop2?.openModelAccessPage?.(url)) === true) return
  } catch (error) {
    console.error('Desktop could not open the access page:', error)
  }
  window.open(url, '_blank', 'noopener,noreferrer')
}

ComfyDesktop2BridgeImplementation is the provider-side counterpart: it makes every top-level member required, so Desktop's preload cannot claim the contract while omitting part of it.

Comfy pages hosted in Desktop's Apps view

A Comfy page that Desktop shows in its Apps view gets these objects instead, and nothing else of the bridge above: window.comfyDesktopAuth, Desktop's account session, window.comfyDesktopLocal, a ComfyUI on this computer, window.comfyDesktopTelemetry, the page's usage events, window.comfyDesktopOutputs, Desktop's output dialog, window.comfyDesktopAssets, the person's pictures for the page's inputs, and window.comfyDesktopRuns, where the page says when a run starts and ends. reportRun({ running, runs }) can also list the page's runs, with where each runs, its state and its step, for Desktop's run overview. Desktop builds before the run overview ignore runs.

import type {
  ComfyDesktopHostedAssetsBridge,
  ComfyDesktopHostedAuthBridge,
  ComfyDesktopHostedLocalBridge,
  ComfyDesktopHostedOutputsBridge,
  ComfyDesktopHostedRunsBridge,
  ComfyDesktopHostedTelemetryBridge
} from '@comfyorg/comfyui-desktop-bridge-types'

declare global {
  interface Window {
    comfyDesktopAuth?: ComfyDesktopHostedAuthBridge
    comfyDesktopLocal?: ComfyDesktopHostedLocalBridge
    comfyDesktopTelemetry?: ComfyDesktopHostedTelemetryBridge
    comfyDesktopOutputs?: ComfyDesktopHostedOutputsBridge
    comfyDesktopAssets?: ComfyDesktopHostedAssetsBridge
    comfyDesktopRuns?: ComfyDesktopHostedRunsBridge
  }
}

The page reads the session with getState(), follows it with onChanged(), asks for the workspace credential with getWorkspaceToken(workspaceId) each time it calls Comfy Cloud, and starts a sign-in with requestSignIn(). getCloudOrigin() gives the Comfy Cloud address Desktop's account belongs to, such as https://cloud.comfy.org, so the page sends those calls to the same Cloud as Desktop. Desktop builds before it do not have it, so check for it first. It cannot sign Desktop out or switch workspace.

For a run on this computer the page asks getLocal({ minVersion }) which of the person's builds Desktop would use, starts it with startLocal(), and then talks to it through localFetch(). Desktop forwards only the calls a run needs, and only for runs the page started; onLocalEvent() carries ComfyUI's updates for those runs, and Desktop's own run_failed, with the reason, when Desktop loses one: ComfyUI closed or restarted, or no longer has the run after Desktop connects to it again. A run taken out of ComfyUI's queue while Desktop is connected gets none, so a page also looks for its run in the queue and the history. localDownload() saves a safetensors model from Hugging Face into that build's models folder. While the person's first build is still installing, getLocal() answers installing: localDownload() works already, and startLocal() waits for the install, then starts the build.

machine() gives the operating system, and the memory of the graphics card or that there is no GPU when Desktop can read it. Desktop waits at most 5 seconds for the asynchronous part of that read; a driver tool that it waits for synchronously, such as nvidia-smi, can make the answer later. It is absent on Desktop builds that predate it.

openInComfy({ prompt, where, name, build }) opens a run's API-format workflow in a ComfyUI window in Desktop: the build the page runs on (or the build build names, an id from localBuilds()) for where: 'local', or the person's Comfy Cloud for where: 'cloud'. Desktop starts the build or shows its window if needed, and resolves { opened: true } once ComfyUI has loaded the workflow, or { opened: false, error } with the reason in words. Both members are absent on Desktop builds that predate them, so a page checks for them and keeps its file download as the fallback.

track(name, props) reports what the person does on the page, such as track('click', { target: 'run' }). Desktop sends it as comfy.desktop.apps.<name> only when the person allows telemetry, and adds app_id, the app whose page Desktop loaded in that view. An event the page sends while the view loads another app is dropped.

  • A name starts with a lowercase letter, then lowercase letters, digits and _, up to 48 characters in all (^[a-z][a-z0-9_]{0,47}$), so 2_click is dropped. app_opened, app_page_failed, run_finished and setup are Desktop's own and are refused, and so is error.
  • Desktop keeps up to 16 properties. A key starts with a lowercase letter, then lowercase letters, digits and _, up to 32 characters in all (^[a-z][a-z0-9_]{0,31}$), so { Run: true } is dropped. A value is a boolean, a finite number or a slug of up to 64 characters (^[a-z0-9][a-z0-9._-]{0,63}$). Free text, any other key or value, and an app or app_id from the page are dropped.
  • Desktop sets these keys on every event itself, so the page's value for any of them is dropped: app_version, app_channel, app_env, is_packaged, platform, arch, client, installation_id and sac_state.
  • Desktop sends at most 60 events a minute for one app and 1,000 page events a session. Events telemetry did not send, as while consent is off, do not count.
  • Desktop's telemetry also sends at most 60 of one event name a minute, shared by every app. If one app sends 60 click events in a minute, a click from another app in that minute is dropped too.

The page is not told when Desktop drops an event.

comfyDesktopAssets gives the page references to pictures and videos, never paths. recent({ kinds, where }) lists the newest app results: for where: 'local', the files under output/apps/ of the build the page's local runs go to (the shared output folder by default) and no other output files; for where: 'cloud', the signed-in workspace's Comfy Cloud outputs. fromFile(file, { kinds }) takes a file the person dropped or chose; only its path reaches Desktop, which checks it is a regular file of an allowed kind and at most 2 GiB. read(ref) gives the bytes for a preview, up to 512 MiB. When a run starts, valueFor(ref, { where }) gives the value for LoadImage.image or LoadVideo.file, such as apps/remove-background/cutout_00001_.png [output]; a file outside the build's folders is copied once into input/desktop/. A reference works only in the page document that received it. On any error the page uploads the picture as before.

All these objects are absent in a browser, so a page keeps its own sign-in and its own way to reach a local ComfyUI as the fallback, and sends no events.

Provenance

Generated from src/types/comfyDesktopBridge.ts in Comfy-Org/Comfy-Desktop, which is the same file the preload implements. Edit that file, run pnpm run bridge-types:gen, and bump the version in this package's package.json. Merging to main then publishes it; CI refuses a contract change that arrives without a bump.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @comfyorg/comfyui-desktop-bridge-types

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229