CVE-2026-6591 ComfyUI LoadImage Node folder_paths.py folder_paths.get_annotated_filepath path traversal

Medium 5.3 Published Updated

Attackers can exploit a path traversal flaw in the LoadImage Node to read arbitrary files from the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-6591?

CVE-2026-6591 is a medium-severity path traversal vulnerability in ComfyUI, published on 20 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-22

Which versions are affected by CVE-2026-6591?

How do I fix CVE-2026-6591?

No fix has been published for CVE-2026-6591 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-6591 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-6591 exists.

Sources

Also known as GHSA-c9gf-mh8q-hp8p.

Is CVE-2026-6591 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free