Skip to main content

Langflow CVE-2026-5026

| EUVDEUVD-2026-16666 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-03-27 vulnreport@tenable.com GHSA-89f7-r7x8-83q7
7.0
CVSS 4.0 · NVD
Share

Severity by source

NVD PRIMARY
7.0 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
P
Scope
X

Lifecycle Timeline

5
Analysis Updated
Apr 20, 2026 - 13:28 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Apr 20, 2026 - 13:22 vuln.today
cvss_changed
EUVD ID Assigned
Mar 27, 2026 - 15:22 euvd
EUVD-2026-16666
Analysis Generated
Mar 27, 2026 - 15:22 vuln.today
CVE Published
Mar 27, 2026 - 15:17 nvd
HIGH 7.0

DescriptionCVE.org

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.

AnalysisAI

Stored XSS in Langflow's image serving endpoint allows authenticated attackers to steal session tokens via malicious SVG uploads. The '/api/v1/files/images/{flow_id}/{file_name}' endpoint serves user-uploaded SVG files with 'image/svg+xml' content type without sanitization, enabling embedded JavaScript execution in victim browsers. Authenticated attackers with low privileges can upload crafted SVGs that execute in other users' contexts, exfiltrating JWT access and refresh tokens from cookies. EPSS probability is low (0.07%, 22nd percentile) with no active exploitation confirmed (SSVC: none), but the attack is straightforward for authenticated users with file upload permissions.

Technical ContextAI

This vulnerability stems from improper neutralization of input during web page generation (CWE-79), specifically stored cross-site scripting. SVG (Scalable Vector Graphics) files are XML-based vector images that can contain embedded scripts within <script> tags or event handlers. When served with the 'image/svg+xml' MIME type and rendered inline in browsers, these scripts execute in the origin's security context. Langflow's file serving API endpoint lacks content security policies (CSP), SVG sanitization (stripping <script> tags, event handlers, and data URIs), or safe content-type headers (text/plain or application/octet-stream for untrusted content). The affected product per CPE data is Langflow version unspecified ('langflow:-'), though EUVD lists 'langflow 0' which suggests early/initial versions. The CVSS 4.0 vector indicates network-based attack (AV:N), low complexity (AC:L), requiring low privileges (PR:L) and user interaction (UI:P), with high confidentiality impact (VC:H) and low integrity impact (VI:L) to the vulnerable system, no subsequent system compromise (SC:N/SI:N/SA:N).

RemediationAI

Apply vendor-released patch once available from the Langflow project repository (monitor https://github.com/langflow-ai/langflow for security updates and CVE-2026-5026 fix announcements). Primary mitigation is implementing SVG sanitization using libraries like DOMPurify or svg-sanitizer to strip script tags, event handlers, and unsafe attributes before serving files. Immediate compensating controls with trade-offs: (1) Modify endpoint to serve SVG files with 'Content-Type: text/plain' and 'Content-Disposition: attachment' headers, preventing browser rendering but breaking legitimate SVG display functionality in flows; (2) Implement Content Security Policy headers with 'default-src self; script-src self' to block inline scripts, though this may interfere with other Langflow features requiring inline JavaScript; (3) Restrict '/api/v1/files/images/' endpoint access to authenticated API calls only with anti-CSRF tokens, preventing direct browser navigation but requiring application-level changes; (4) Deploy Web Application Firewall rules to detect and block SVG uploads containing <script> tags or javascript: URIs, accepting risk of bypass via obfuscation techniques. For high-security environments, disable SVG upload support entirely if workflows don't require vector graphics, or proxy all image serving through a separate sanitization service. Review Tenable TRA-2026-25 for additional vendor-specific guidance: https://www.tenable.com/security/research/tra-2026-25.

CVE-2025-3248 CRITICAL POC
9.8 Apr 07

Langflow before 1.3.0 allows unauthenticated remote code injection through the /api/v1/validate/code endpoint, enabling

CVE-2025-34291 CRITICAL POC
9.4 Dec 05

Account takeover and remote code execution in Langflow AI workflow platform versions ≤1.6.9 due to a CORS misconfigurati

CVE-2026-0770 CRITICAL POC
9.8 Jan 23

Langflow has a third RCE vulnerability via exec_globals (EPSS 10.0%) allowing inclusion of untrusted code that executes

CVE-2026-27966 CRITICAL POC
9.8 Feb 26

Code injection in Langflow CSV Agent node before 1.8.0. The node hardcodes allow_dangerous_code=True, enabling arbitrary

CVE-2024-48061 CRITICAL POC
9.8 Nov 04

langflow <=1.0.18 is vulnerable to Remote Code Execution (RCE) as any component provided the code functionality and the

CVE-2024-42835 CRITICAL POC
9.8 Oct 31

langflow v1.0.12 was discovered to contain a remote code execution (RCE) vulnerability via the PythonCodeTool component.

CVE-2024-37014 CRITICAL POC
9.8 Jun 10

Langflow through 0.6.19 allows remote code execution if untrusted users are able to reach the "POST /api/v1/custom_compo

CVE-2026-21445 CRITICAL POC
9.1 Jan 02

Langflow before 1.7.0.dev45 exposes multiple API endpoints without authentication, allowing unauthenticated access to us

CVE-2024-7297 HIGH POC
8.8 Jul 30

Langflow versions prior to 1.0.13 suffer from a Privilege Escalation vulnerability, allowing a remote and low privileged

CVE-2026-0768 CRITICAL
9.8 Jan 23

Langflow has a code injection vulnerability in the code component (EPSS 2.6%) enabling remote code execution through the

CVE-2026-0769 CRITICAL
9.8 Jan 23

Langflow has an eval injection in eval_custom_component_code (EPSS 2.0%) enabling remote code execution through crafted

CVE-2026-10134 CRITICAL
10.0 Jun 30

Remote code execution in IBM Langflow OSS 1.0.0 through 1.9.3 lets an unauthenticated attacker inject and run arbitrary

Share

CVE-2026-5026 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy