XSS in Langflow
CVE-2026-5026
The '/api/v1/files/images/{flow_id}/{file_name}' endpoint serves SVG files with the 'image/svg+xml' content type without sanitizing their content. 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.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.002 (5.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
Affected products
- Langflow
- Langflow-ai Langflow — versions 0
Weakness classification (CWE)
References
- vulnreport@tenable.com (Vendor Advisory)
Frequently asked questions
- What is CVE-2026-5026?
- CVE-2026-5026 is a medium-severity vulnerability in Langflow, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2026-03-27.
- How severe is CVE-2026-5026?
- Medium severity. CVSS v3 base score is 5.4 out of 10.