Read the docs
TI-2026-40857 Aliases CVE-2026-56673

ComfyUI: Path traversal in LoadImage via the /prompt API allows arbitrary file existence probing and image exfiltration

Priority MEDIUM 40CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-22 and the CVSS impact.

Summary

ComfyUI is a modular diffusion model GUI, API, and backend with a graph-and-node interface. Prior to 0.28.0, folder_paths.get_annotated_filepath and exists_annotated_filepath join workflow-controlled annotated filenames to a base directory without a containment check, allowing an unauthenticated crafted POST /prompt workflow using LoadImage or sibling nodes to probe arbitrary host paths and exfiltrate image-format files through /view. LoadImage defines a VALIDATE_INPUTS method, which causes the execution engine to skip COMBO (input-directory) validation. Affected nodes include LoadImage, LoadImageMask, LoadImageOutput, LoadAudio, LoadLatent, LoadVideo, and Load3D. This issue is fixed in version 0.28.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00632 50th percentileScored 2026-11-07
Fix Fixed ComfyUI (Comfy-Org): 0.28.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Comfy-OrgComfyUIbefore 0.28.00.28.0Patch availableCNA
  • ComfyUI VendorComfy-Org Affected before 0.28.0 Fixed in 0.28.0 Patch available CNA

Remediation

  • Fix · CNA ComfyUI (Comfy-Org) Fixed in 0.28.0

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-56673
  2. 2026-10-25 EPSS moved to the 50th–90th percentile

References

  • 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-40856 ComfyUI: Stored XSS via /userdata/{file} due to Missing Content-Type Sanitization CVSS 3.1HIGH 8.2
  • TI-2026-40854 ComfyUI: Stored XSS via SVG file upload on the /view endpoint CVSS 3.1HIGH 8.2

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences