ComfyUI: Stored XSS via SVG file upload on the /view endpoint
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
ComfyUI is a modular diffusion model GUI, api and backend with a graph/nodes interface. Prior to 0.28.0, the /view endpoint served uploaded SVG files inline because image/svg+xml and related XML content types were absent from the dangerous-content-type handling, allowing stored cross-site scripting in the ComfyUI origin. This issue is fixed in version 0.28.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA ComfyUI (Comfy-Org) Fixed in 0.28.0
Timeline
- 2026-10-02 Threatist record created from CVE-2026-56670
References
More Comfy-Org vulnerabilities
- TI-2026-62555 ComfyUI before 0.30.0 Path Traversal via dataset save nodes CVSS 4.0HIGH 8.5
- TI-2026-48352 ComfyUI 0.23.0 Unauthenticated RCE via LoadTrainingDataset Pickle Deserialization CVSS 4.0CRITICAL 9.3
- TI-2026-40855 ComfyUI: Path traversal in /experiment/models/preview allows arbitrary image file read CVSS 3.1HIGH 7.5
- TI-2026-40857 ComfyUI: Path traversal in LoadImage via the /prompt API allows arbitrary file existence probing and image exfiltration CVSS 3.1HIGH 7.5
- TI-2026-40856 ComfyUI: Stored XSS via /userdata/{file} due to Missing Content-Type Sanitization CVSS 3.1HIGH 8.2
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences