Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-5026: CWE-79 Improper neutralization of input during web page generation ('cross-site scripting') in langflow-ai langflow

0
High
VulnerabilityCVE-2026-5026cvecve-2026-5026cwe-79
Published: Fri Mar 27 2026 (03/27/2026, 14:50:36 UTC)
Source: CVE Database V5
Vendor/Project: langflow-ai
Product: langflow

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/27/2026, 15:30:02 UTC

Technical Analysis

CVE-2026-5026 is a stored cross-site scripting (XSS) vulnerability classified under CWE-79, found in the langflow-ai langflow product, specifically version 0. The vulnerability arises from the '/api/v1/files/images/{flow_id}/{file_name}' endpoint, which serves SVG files with the MIME type 'image/svg+xml' without properly sanitizing the SVG content. SVG files can embed JavaScript, and because the application does not neutralize this input, an attacker can upload a crafted SVG containing malicious JavaScript code. When other users access or view these SVG images, the embedded script executes in their browsers within the context of the vulnerable application. This can lead to theft of sensitive information, notably authentication tokens stored in cookies, including JWT access and refresh tokens, enabling session hijacking or further attacks. The vulnerability requires no authentication to exploit but does require user interaction to trigger the malicious script execution. The CVSS 4.0 vector indicates network attack vector, low attack complexity, no privileges required, partial user interaction, and high impact on confidentiality. Although no known exploits are currently reported in the wild, the vulnerability poses a significant risk due to the common use of SVG files and the sensitive nature of stolen tokens. The lack of patch links suggests a fix is not yet publicly available, emphasizing the need for immediate mitigation steps by users of langflow.

Potential Impact

The primary impact of CVE-2026-5026 is the compromise of user confidentiality through theft of authentication tokens, including JWT access and refresh tokens. This can lead to unauthorized access to user accounts and sensitive data, enabling attackers to impersonate legitimate users and escalate privileges. The integrity of user sessions may also be affected if attackers manipulate session tokens. While availability is not directly impacted, the breach of authentication mechanisms can lead to broader security incidents, including data breaches and lateral movement within affected networks. Organizations relying on langflow for workflow or automation tasks may face operational disruptions if attackers leverage stolen tokens to manipulate workflows or exfiltrate data. The vulnerability's ease of exploitation (no authentication required) and the widespread use of SVG images increase the risk of exploitation, particularly in environments where multiple users can upload or view SVG content. The lack of current known exploits provides a window for proactive defense, but the potential impact remains high if exploited.

Mitigation Recommendations

To mitigate CVE-2026-5026, organizations should implement strict input validation and sanitization on all SVG uploads, ensuring that any embedded scripts or potentially malicious content are removed or neutralized before serving the files. Employing a whitelist approach to allowed SVG elements and attributes can reduce risk. If possible, restrict or disable SVG uploads entirely unless absolutely necessary. Use Content Security Policy (CSP) headers to limit the execution of inline scripts and restrict sources of executable code in browsers. Monitor and audit file upload endpoints for unusual activity and implement rate limiting to reduce abuse. Ensure that authentication tokens are stored securely using HttpOnly and Secure cookie flags to prevent theft via JavaScript. Regularly update langflow to the latest versions once patches become available. Additionally, educate users about the risks of interacting with untrusted SVG content and encourage reporting of suspicious files. Consider isolating SVG rendering in sandboxed environments or using server-side rendering techniques to avoid direct client execution of SVG scripts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
tenable
Date Reserved
2026-03-27T14:43:36.423Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69c69ee73c064ed76fb956b4

Added to database: 3/27/2026, 3:14:47 PM

Last enriched: 3/27/2026, 3:30:02 PM

Last updated: 3/27/2026, 5:37:48 PM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses