HighVulnerability
CVE-2026-56672: ComfyUI stored cross-site scripting via GET /userdata/{file}
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-56672
- Published
- Record updated
Summary
ComfyUI versions before 0.28.0 served user-uploaded HTML and SVG files from GET /userdata/{file} with content types derived from the file extension, so the handler's web.FileResponse(path) returned them as text/html or image/svg+xml. An attacker could store a file with embedded script through POST /userdata and have it run same-origin when a victim opened the URL, exposing browser-stored API tokens, settings, workflows and authenticated-equivalent API calls. The /view endpoint already forced dangerous MIME types to download, but that protection had never been applied to /userdata.
Mitigation
Fixed in 0.28.0.
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online