CVE-2025-49126 Visionatrix Vulnerable to Reflected XSS Leading to Exfiltration of Secrets

High 8.8 Published Updated

Attackers can execute arbitrary scripts via reflected XSS to hijack user sessions and steal secrets from the Visionatrix application.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-49126?

CVE-2025-49126 is a high-severity cross-site scripting vulnerability in Visionatrix, published on 23 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Visionatrix is an AI Media processing tool using ComfyUI. In versions 1.5.0 to before 2.5.1, the /docs/flows endpoint is vulnerable to a Reflected XSS (Cross-Site Scripting) attack allowing full takeover of the application and exfiltration of secrets stored in the application. The implementation uses the get_swagger_ui_html function from FastAPI. This function does not encode or sanitize its arguments before using them to generate the HTML for the swagger documentation page and is not intended to be used with user-controlled arguments. Any user of this application can be targeted with a one-click attack that can takeover their session and all the secrets that may be contained within it. This issue has been patched in version 2.5.1.

Weakness: CWE-79

Which versions are affected by CVE-2025-49126?

How do I fix CVE-2025-49126?

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

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-49126 being exploited?

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

Sources

Also known as GHSA-w36r-9jvx-q48v.

Is CVE-2025-49126 in your software?

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

Check your SBOMs for free