# CVE-2026-56673: ComfyUI path traversal in LoadImage and media nodes

Source: https://junglewise.ai/threats/cve-2026-56673-comfyui-path-traversal-in-loadimage-and-media-nodes  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-31. Updated: 2026-07-31  
License: CC BY 4.0 with a link back

CVE-2026-56673 · Severity: high · CVSS 7.5 · Published 2026-07-31

ComfyUI is a popular interface and backend used for generating images and media using AI models. A security flaw allows unauthenticated remote users to bypass directory restrictions and access files on the host server that they should not be able to see. This could lead to the theft of private images, audio, or other media files, and allows attackers to map out the server's file structure.

Technologies: [Comfy-Org ComfyUI](https://junglewise.ai/threats/technologies/comfyui). Vendors: [Comfy-Org](https://junglewise.ai/threats/vendors/comfy-org).

## Quick answers

**Is CVE-2026-56673 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-56673 being exploited in the wild.

**How severe is CVE-2026-56673?** High severity, with a CVSS score of 7.5, published 31 July 2026.

**Which products and versions are affected?** Comfy-Org ComfyUI < 0.28.0.

**Is there a fix for CVE-2026-56673?** A patch was published on 2026-07-03: Fixes merged into master branch Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-56673 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-56673?** Check whether you run Comfy-Org ComfyUI at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A path traversal vulnerability exists in ComfyUI's 'folder_paths.get_annotated_filepath' and 'exists_annotated_filepath' functions. These functions join user-controlled filenames to a base directory without performing a containment check (such as verifying the commonpath), allowing the use of '../' sequences to escape the intended directory. Furthermore, the 'LoadImage' node defines a 'VALIDATE_INPUTS' method that inadvertently causes the execution engine to skip standard input directory validation. An unauthenticated attacker can exploit this by sending a crafted POST request to the '/prompt' endpoint to probe for the existence of arbitrary files or exfiltrate image-format files via the '/view' endpoint. Affected nodes include LoadImage, LoadImageMask, LoadImageOutput, LoadAudio, LoadLatent, LoadVideo, and Load3D. The issue is resolved in version 0.28.0 by hardening path resolution logic.

## Affected products

- Comfy-Org ComfyUI < 0.28.0

## Timeline

- 2026-07-03: patched: Fixes merged into master branch
- 2026-07-15: advisory: GitHub Security Advisory published
- 2026-07-31: disclosed: CVE published to NVD

## References

- [https://github.com/Comfy-Org/ComfyUI/pull/14734](https://github.com/Comfy-Org/ComfyUI/pull/14734)
- [https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0](https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0)
- [https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-rvxv-29p8-pxgq](https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-rvxv-29p8-pxgq)

## Related threats

- [ComfyUI path traversal in dataset save nodes](https://junglewise.ai/threats/cve-2026-92816-comfyui-path-traversal-in-dataset-save-nodes)
- [Comfy-Org ComfyUI unsafe deserialization in LoadTrainingDataset node](https://junglewise.ai/threats/cve-2026-68771-comfy-org-comfyui-unsafe-deserialization-in-loadtrainingdataset)
- [Comfy-Org ComfyUI stored XSS in userdata endpoint](https://junglewise.ai/threats/cve-2026-56672-comfy-org-comfyui-stored-xss-in-userdata-endpoint)
- [Comfy-Org ComfyUI path traversal in model preview endpoint](https://junglewise.ai/threats/cve-2026-56671-comfy-org-comfyui-path-traversal-in-model-preview-endpoint)
- [Comfy-Org ComfyUI stored XSS in /view endpoint via SVG upload](https://junglewise.ai/threats/cve-2026-56670-comfy-org-comfyui-stored-xss-in-view-endpoint-via-svg-upload)
