CVE-2026-5026: Langflow - Stored XSS via Malicious SVG Upload

Published Mar 27, 2026
·
Updated

The '/api/v1/files/images/{flowid}/{filename}' 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.

Affected Software

2 affected components
Langflow
Langflow Langflow

Event History

Mar 27, 2026
CVE Published
via MITRE·02:50 PM
Data Sourced
via MITRE·02:50 PM
DescriptionWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeaknessAffected Software
Nov 28, 58273
Event
via FIRST·04:36 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-5026?

CVE-2026-5026 is a high severity vulnerability due to its potential for executing arbitrary JavaScript through stored XSS.

2

How do I fix CVE-2026-5026?

To fix CVE-2026-5026, ensure that SVG uploads are properly sanitized to remove any embedded scripts before processing.

3

What type of attack is associated with CVE-2026-5026?

CVE-2026-5026 is associated with a stored cross-site scripting (XSS) attack via malicious SVG file uploads.

4

Which software is affected by CVE-2026-5026?

CVE-2026-5026 affects the Langflow software when handling SVG file uploads through its API.

5

How can an attacker exploit CVE-2026-5026?

An attacker can exploit CVE-2026-5026 by uploading a malicious SVG file that contains JavaScript, which executes when the file is served.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203