CVE-2026-5026

Severity CVSS v4.0:
HIGH
Type:
CWE-79 Cross-Site Scripting (XSS)
Publication date:
27/03/2026
Last modified:
20/04/2026

Description

The &amp;#39;/api/v1/files/images/{flow_id}/{file_name}&amp;#39; endpoint serves SVG files with the &amp;#39;image/svg+xml&amp;#39; content type without sanitizing their content.<br /> <br /> Since SVG files can contain embedded JavaScript, an attacker can upload a malicious SVG that executes arbitrary JavaScript when viewed by other users, leading to stored cross-site scripting (XSS). This allows stealing authentication tokens stored in cookies, including JWT access and refresh tokens.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:langflow:langflow:-:*:*:*:*:*:*:*


References to Advisories, Solutions, and Tools