Skip to main content
EPSS 0.4%top 64%

CVE-2026-56673: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Comfy-Org ComfyUI

0
High
VulnerabilityCVE-2026-56673cvecve-2026-56673cwe-22
Published: 07/31/2026 (07/31/2026, 04:46:21 UTC)
Source: CVE Database V5
Vendor/Project: Comfy-Org
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

Comfy-Org

ComfyUI

Affected versions
<0.28.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/07/2026, 14:38:10 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses