{"id":82776,"date":"2026-07-31T07:57:18","date_gmt":"2026-07-31T04:27:18","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-56672-comfyui-stored-xss-via-userdata-file-due-to-missing-content-type-sanitization\/"},"modified":"2026-07-31T07:57:18","modified_gmt":"2026-07-31T04:27:18","slug":"cve-2026-56672-comfyui-stored-xss-via-userdata-file-due-to-missing-content-type-sanitization","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-56672-comfyui-stored-xss-via-userdata-file-due-to-missing-content-type-sanitization\/","title":{"rendered":"CVE-2026-56672 &#8211; ComfyUI: Stored XSS via \/userdata\/{file} due to Missing Content-Type Sanitization"},"content":{"rendered":"<p>CVE ID :CVE-2026-56672<\/p>\n<p>  Published : July 31, 2026, 4:27 a.m. | 1\u00a0hour, 19\u00a0minutes ago<\/p>\n<p>  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&#8217;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.<\/p>\n<p>  Severity: 0.0 | NA<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-56672 Published : July 31, 2026, 4:27 a.m. | 1\u00a0hour, 19\u00a0minutes ago 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, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-82776","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=82776"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82776\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}