CVE-2026-5026

Langflow - Stored XSS via Malicious SVG Upload

State
Published
Severity
7.0 High
Published
Mar 27, 2026
Updated
Mar 27, 2026
Reserved
Mar 27, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.07.0 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:Ntenable

Weaknesses

  • CWE-79 Improper neutralization of input during web page generation ('cross-site scripting')

Affected Products

ProductVersions
langflowlangflow-ai
  • 0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.