Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
8DescriptionCVE.org
A flaw has been found in ComfyUI up to 0.13.0. Affected is the function folder_paths.get_annotated_filepath of the file folder_paths.py of the component LoadImage Node. This manipulation of the argument Name causes path traversal. Remote exploitation of the attack is possible. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
AnalysisAI
Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files on the server by manipulating the Name argument in the LoadImage Node's folder_paths.get_annotated_filepath function. The vulnerability has publicly available exploit code and affects the image loading functionality, enabling attackers with valid credentials to access sensitive files outside intended directories.
Technical ContextAI
ComfyUI is a node-based UI framework for Stable Diffusion. The vulnerability exists in the LoadImage Node component, specifically in the folder_paths.py module's get_annotated_filepath function. This function handles file path resolution for loading images but fails to properly sanitize the Name argument, allowing directory traversal sequences (e.g., '../../../') to bypass path restrictions. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) indicates insufficient input validation on file path components. The affected CPE (cpe:2.3:a:comfyui) indicates all versions up to 0.13.0 are vulnerable. The vulnerability is exploitable over the network as the LoadImage Node receives input that can be crafted by any authenticated user of the ComfyUI instance.
RemediationAI
Upgrade ComfyUI to a version newer than 0.13.0 once a patched release is available. As of the time of analysis, the vendor (ComfyUI developers) has not responded to the early disclosure notification and no official patch version has been confirmed. In the interim, implement the following compensating controls: restrict network access to ComfyUI instances to trusted internal networks only using firewall rules or VPN access, enforce strong authentication and session management to reduce the likelihood of credential compromise, and disable or restrict the LoadImage Node feature if image loading is not critical to your workflow. Alternatively, run ComfyUI in a sandboxed or containerized environment with filesystem restrictions to limit the scope of path traversal attacks. Monitor the official ComfyUI GitHub repository (https://github.com/comfyanonymous/ComfyUI) and the VulDB reference (https://vuldb.com/vuln/358226) for patch availability announcements. Apply patches immediately upon release, as the combination of publicly available exploit code and network accessibility creates significant residual risk.
comfyanonymous/comfyui version v0.2.4 suffers from a non-blind Server-Side Request Forgery (SSRF) vulnerability. Rated h
A stored cross-site scripting (XSS) vulnerability exists in comfyanonymous/comfyui version 0.2.2 and possibly earlier. R
Remote code execution in ComfyUI v0.23.0 (and all prior 0.x releases) lets unauthenticated attackers run arbitrary Pytho
Stored cross-site scripting in ComfyUI before 0.28.0 lets an attacker upload a malicious SVG that the /view endpoint ser
Stored cross-site scripting in ComfyUI (Comfy-Org) before 0.28.0 lets an attacker upload HTML or SVG to the per-user use
Unauthenticated information disclosure in ComfyUI (comfy-org/comfyui) before 0.28.0 lets remote attackers read arbitrary
Path traversal arbitrary file read in ComfyUI (comfy-org) before 0.28.0 lets remote unauthenticated attackers probe arbi
Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files via manipul
Cross-site request forgery (CSRF) in ComfyUI up to version 0.13.0 allows unauthenticated remote attackers to modify appl
Cross-site scripting (XSS) in ComfyUI up to version 0.13.0 allows authenticated remote attackers to inject malicious scr
Stored cross-site scripting (XSS) in ComfyUI's userdata endpoint (getuserdata function in app/user_manager.py) allows au
A CSRF vulnerability exists in comfyanonymous/comfyui versions up to v0.2.2. Rated medium severity (CVSS 6.5), this vuln
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-23735