# CVE-2026-92816: ComfyUI path traversal in dataset save nodes

Source: https://junglewise.ai/threats/cve-2026-92816-comfyui-path-traversal-in-dataset-save-nodes  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-16. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-92816 · Severity: high · CVSS 7.8 · Published 2026-09-16

ComfyUI is a popular AI image generation and workflow interface that users load and execute workflows through. A vulnerability in the dataset save functionality allows attackers to craft malicious workflows that write files to arbitrary locations outside the intended output directory, potentially enabling code execution through modification of Python startup files or package initialization code.

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-92816 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-92816 being exploited in the wild.

**How severe is CVE-2026-92816?** High severity, with a CVSS score of 7.8, published 16 September 2026.

**Which products and versions are affected?** Comfy-Org ComfyUI before 0.30.0.

**Is there a fix for CVE-2026-92816?** A patch was published on 2026-09-16: Fix available in version 0.30.0 and later Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-92816 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-92816?** 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

The vulnerability is a path traversal flaw in the dataset save nodes (comfy_extras/nodes_dataset.py) where the folder_name input parameter is not properly sanitized before being used in file write operations. Attackers can load a crafted workflow containing path traversal sequences (e.g., "../") to escape the output directory and write attacker-controlled content to arbitrary filesystem locations. No authentication is required—the attack is delivered via workflow file loading. An attacker can achieve remote code execution by writing malicious Python files to directories that are imported at application startup, such as package initializers or hook scripts.

## Affected products

- Comfy-Org ComfyUI before 0.30.0

## Timeline

- 2026-09-16: disclosed
- 2026-09-16: patched: Fix available in version 0.30.0 and later

## References

- [https://github.com/Comfy-Org/ComfyUI](https://github.com/Comfy-Org/ComfyUI)
- [https://github.com/Comfy-Org/ComfyUI/blob/v0.24.0/comfy_extras/nodes_dataset.py](https://github.com/Comfy-Org/ComfyUI/blob/v0.24.0/comfy_extras/nodes_dataset.py)

## Related threats

- [Comfy-Org ComfyUI unsafe deserialization in LoadTrainingDataset node](https://junglewise.ai/threats/cve-2026-68771-comfy-org-comfyui-unsafe-deserialization-in-loadtrainingdataset)
- [ComfyUI path traversal in LoadImage and media nodes](https://junglewise.ai/threats/cve-2026-56673-comfyui-path-traversal-in-loadimage-and-media-nodes)
- [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)
