CVE-2026-56672: ComfyUI: Stored XSS via /userdata/{file} due to Missing Content-Type Sanitization

Published Jul 31, 2026
·
Updated

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.

Affected Software

1 affected component
ComfyUI ComfyUI<0.28.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ComfyUI to a version that resolves this vulnerability.

    Fixed in 0.28.0

Event History

Jul 31, 2026
CVE Published
via MITRE·04:27 AM
Data Sourced
via MITRE·04:27 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56672?

The severity of CVE-2026-56672 is rated as high with a CVSS score of 8.2.

2

How do I fix CVE-2026-56672?

To fix CVE-2026-56672, upgrade to ComfyUI version 0.28.0 or later.

3

What type of vulnerability is CVE-2026-56672?

CVE-2026-56672 is a Stored Cross-Site Scripting (XSS) vulnerability.

4

What impact does CVE-2026-56672 have on users?

CVE-2026-56672 can lead to access of browser-stored API tokens and user settings due to the execution of malicious scripts.

5

Which versions of ComfyUI are affected by CVE-2026-56672?

Versions of ComfyUI prior to 0.28.0 are affected by CVE-2026-56672.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203