Skip to content

[Security Alert] Requesting the image generation queue exposes users external node API tokens #10494

@ghost

Description

Custom Node Testing

Expected Behavior

Requesting the /api/queue endpoint should only return basic information about the pending image generation requests.

Actual Behavior

It returns the users API key or JWT token if they are signed into ComfyUI's paid external node provider. This could result in monetary losses against publicly exposed ComfyUI instances, as a malicious actor could replay a legitimate users token against a paid node provider.

Steps to Reproduce

  1. Sign in to your comfyUI account
  2. Generate an image that will take a significant amount of time to generate
  3. Load http://comfyui-ip-address/api/queue in a new tab
  4. Note that your API key or JWT token is exposed depending on how you signed in

Debug Logs

N/A

Other

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Potential BugUser is reporting a bug. This should be tested.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions