Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-34291

CVE-2025-34291: Langflow RCE Vulnerability

CVE-2025-34291 is a remote code execution flaw in Langflow affecting versions up to 1.6.9. This chained vulnerability enables account takeover through CORS misconfigurations, leading to full system compromise.

Published: April 1, 2026

CVE-2025-34291 Overview

CVE-2025-34291 is a critical chained vulnerability affecting Langflow, a popular AI agent workflow platform, that enables both account takeover and remote code execution. The vulnerability stems from an overly permissive CORS configuration combined with insecure cookie settings, allowing attackers to hijack user sessions and execute arbitrary code on vulnerable systems.

The attack chain exploits two misconfigurations: a CORS policy set with allow_origins='*' alongside allow_credentials=True, and a refresh token cookie configured as SameSite=None. This combination permits malicious webpages to perform cross-origin requests that include credentials, enabling attackers to call the refresh endpoint and obtain fresh access_token / refresh_token pairs for victim sessions.

Critical Impact

Attackers can achieve full system compromise by hijacking authenticated sessions and leveraging Langflow's built-in code execution functionality to run arbitrary commands.

Affected Products

  • Langflow versions up to and including 1.6.9

Discovery Timeline

  • 2025-12-05 - CVE-2025-34291 published to NVD
  • 2026-01-16 - Last updated in NVD database

Technical Details for CVE-2025-34291

Vulnerability Analysis

This vulnerability represents a chained exploitation path combining Origin Validation Error (CWE-346) with insecure session management. The root issue lies in the application's failure to properly restrict cross-origin requests while simultaneously allowing credentials to be sent with those requests.

When a user with an active Langflow session visits a malicious webpage, the attacker-controlled site can make authenticated requests to the Langflow API. Because the CORS policy accepts all origins (*) and the SameSite=None cookie attribute permits cross-site cookie transmission, the victim's refresh token cookie is automatically included in these requests.

The attacker can then call the /api/v1/refresh endpoint to obtain new access and refresh tokens, effectively hijacking the victim's session. With valid authentication tokens in hand, the attacker gains access to all authenticated endpoints, including Langflow's code execution capabilities that are integral to its AI workflow functionality.

Root Cause

The vulnerability originates from two interconnected misconfigurations in Langflow's authentication and CORS handling:

  1. Overly Permissive CORS Policy: The application sets allow_origins='*' (wildcard) while simultaneously enabling allow_credentials=True. This configuration violates security best practices, as the CORS specification explicitly warns against combining wildcard origins with credential sharing.

  2. Insecure Cookie Configuration: The refresh token cookie is set with SameSite=None, which instructs browsers to send the cookie with all cross-site requests. Without a restrictive CORS policy, this creates a pathway for credential theft.

Attack Vector

The attack requires user interaction in the form of visiting a malicious webpage while authenticated to a vulnerable Langflow instance. The exploitation flow proceeds as follows:

  1. The attacker hosts a webpage containing JavaScript designed to interact with the target Langflow instance
  2. A victim with an active Langflow session visits the malicious page
  3. The attacker's JavaScript makes a cross-origin request to the Langflow refresh endpoint
  4. Due to the misconfigured CORS and cookie settings, the request includes the victim's refresh token
  5. The attacker receives fresh access and refresh tokens in the response
  6. Using the stolen tokens, the attacker accesses authenticated endpoints and leverages built-in code execution functionality to compromise the system

The attack exploits network-accessible endpoints and requires no special privileges, though it does depend on victim interaction with the attacker's malicious webpage.

Detection Methods for CVE-2025-34291

Indicators of Compromise

  • Unexpected or anomalous refresh token requests originating from external IP addresses or unusual geographic locations
  • Access token usage patterns showing requests from multiple distinct IP addresses within short timeframes
  • Authentication logs showing token refresh activity followed by code execution endpoint access from different network sources
  • Suspicious workflow executions or code execution requests initiated through the Langflow API

Detection Strategies

  • Monitor CORS-related headers in web server logs for requests with unusual Origin headers targeting authentication endpoints
  • Implement anomaly detection for refresh token endpoint usage, particularly looking for tokens being refreshed from new IP addresses
  • Audit code execution and workflow trigger events for unauthorized or unexpected activity
  • Review authentication logs for session activity patterns indicative of token theft

Monitoring Recommendations

  • Enable detailed logging for all authentication-related endpoints, including /api/v1/refresh
  • Configure alerting for code execution operations, especially those that do not correlate with expected user activity
  • Implement session binding to track IP address consistency throughout a session lifecycle
  • Monitor for elevated API call rates from individual sessions that may indicate automated exploitation

How to Mitigate CVE-2025-34291

Immediate Actions Required

  • Upgrade Langflow to a version newer than 1.6.9 that addresses the CORS and cookie configuration issues
  • Review active sessions and invalidate any that show suspicious activity patterns
  • Audit recent code execution logs for signs of unauthorized access or malicious activity
  • Consider temporarily restricting network access to Langflow instances until patches can be applied

Patch Information

Organizations running Langflow versions 1.6.9 or earlier should upgrade to the latest available version immediately. Consult the Langflow GitHub repository for the latest release information and upgrade instructions. The Obsidian Security advisory provides additional technical context regarding the vulnerability.

Workarounds

  • Configure a reverse proxy or web application firewall to enforce strict CORS policies that only allow trusted origins
  • Implement network-level access controls to restrict which IP addresses can reach the Langflow instance
  • Disable or restrict access to code execution functionality for non-essential users until patching is complete
  • Consider deploying Langflow behind a VPN or zero-trust network access solution to limit exposure
bash
# Example nginx configuration to restrict CORS origins
# Place in nginx server block configuration

location /api/ {
    # Only allow specific trusted origins
    set $cors_origin "";
    if ($http_origin ~* "^https://(app\.yourdomain\.com|trusted\.example\.com)$") {
        set $cors_origin $http_origin;
    }
    
    add_header 'Access-Control-Allow-Origin' $cors_origin always;
    add_header 'Access-Control-Allow-Credentials' 'true' always;
    add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
    add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type' always;
    
    proxy_pass http://langflow_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLangflow

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability12.37%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-346
  • Technical References
  • GitHub Project Repository

  • VulnCheck Advisory
  • Vendor Resources
  • Obsidian Security Blog Post
  • Related CVEs
  • CVE-2026-33873: Langflow Agentic Assistant RCE Vulnerability

  • CVE-2026-33017: Langflow Langflow RCE Vulnerability

  • CVE-2026-33309: Langflow Arbitrary File Write RCE Flaw

  • CVE-2026-33475: Langflow GitHub Actions RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English