CVE-2026-56673: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Comfy-Org ComfyUI
CVE-2026-56673 is a path traversal vulnerability in Comfy-Org's ComfyUI prior to version 0.28.0. The issue arises because certain functions join user-controlled filenames to a base directory without verifying containment, allowing unauthenticated attackers to read arbitrary files. This affects multiple nodes including LoadImage and related nodes. The vulnerability is fixed in version 0.28.0.
AI Analysis
Technical Summary
ComfyUI versions before 0.28.0 contain a path traversal vulnerability (CWE-22) due to improper limitation of pathname to a restricted directory. The functions folder_paths.get_annotated_filepath and exists_annotated_filepath concatenate workflow-controlled annotated filenames to a base directory without containment checks. This allows an unauthenticated attacker to craft POST /prompt workflows using nodes like LoadImage to probe arbitrary host filesystem paths and exfiltrate image-format files via the /view endpoint. The LoadImage node's VALIDATE_INPUTS method causes the execution engine to skip input-directory validation, contributing to the issue. Affected nodes include LoadImage, LoadImageMask, LoadImageOutput, LoadAudio, LoadLatent, LoadVideo, and Load3D. The vulnerability is resolved in ComfyUI version 0.28.0.
Potential Impact
An unauthenticated attacker can exploit this vulnerability to read arbitrary files on the host filesystem that are accessible to the application, specifically image-format files, leading to potential data exposure. There is no indication of impact on integrity or availability. The CVSS score of 7.5 reflects high confidentiality impact with no required privileges or user interaction.
Mitigation Recommendations
Upgrade ComfyUI to version 0.28.0 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated in the available data.
CVE-2026-56673: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Comfy-Org ComfyUI
Description
CVE-2026-56673 is a path traversal vulnerability in Comfy-Org's ComfyUI prior to version 0.28.0. The issue arises because certain functions join user-controlled filenames to a base directory without verifying containment, allowing unauthenticated attackers to read arbitrary files. This affects multiple nodes including LoadImage and related nodes. The vulnerability is fixed in version 0.28.0.
CVSS v3.1
Score 7.5high
Affected software
Comfy-Org
ComfyUI
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
ComfyUI versions before 0.28.0 contain a path traversal vulnerability (CWE-22) due to improper limitation of pathname to a restricted directory. The functions folder_paths.get_annotated_filepath and exists_annotated_filepath concatenate workflow-controlled annotated filenames to a base directory without containment checks. This allows an unauthenticated attacker to craft POST /prompt workflows using nodes like LoadImage to probe arbitrary host filesystem paths and exfiltrate image-format files via the /view endpoint. The LoadImage node's VALIDATE_INPUTS method causes the execution engine to skip input-directory validation, contributing to the issue. Affected nodes include LoadImage, LoadImageMask, LoadImageOutput, LoadAudio, LoadLatent, LoadVideo, and Load3D. The vulnerability is resolved in ComfyUI version 0.28.0.
Potential Impact
An unauthenticated attacker can exploit this vulnerability to read arbitrary files on the host filesystem that are accessible to the application, specifically image-format files, leading to potential data exposure. There is no indication of impact on integrity or availability. The CVSS score of 7.5 reflects high confidentiality impact with no required privileges or user interaction.
Mitigation Recommendations
Upgrade ComfyUI to version 0.28.0 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated in the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-22T16:39:01.043Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a6c31249c2644c7f8578d6c
Added to database: 07/31/2026, 05:22:44 UTC
Last enriched: 08/07/2026, 14:38:10 UTC
Last updated: 09/13/2026, 10:01:31 UTC
Views: 53
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.