banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2026-27966

CVE-2026-27966: Langflow CSV Agent Node RCE Vulnerability

CVE-2026-27966 is a remote code execution flaw in Langflow CSV Agent node that allows attackers to execute arbitrary Python and OS commands via prompt injection. This article covers technical details, affected versions, and patches.

Published: February 27, 2026

CVE-2026-27966 Overview

CVE-2026-27966 is a critical Remote Code Execution (RCE) vulnerability in Langflow, a tool for building and deploying AI-powered agents and workflows. Prior to version 1.8.0, the CSV Agent node in Langflow hardcodes allow_dangerous_code=True, which automatically exposes LangChain's Python REPL tool (python_repl_ast). As a result, an attacker can execute arbitrary Python and OS commands on the server via prompt injection, leading to full Remote Code Execution.

Critical Impact

This vulnerability allows unauthenticated attackers to execute arbitrary code on the server through prompt injection, potentially leading to complete system compromise, data theft, and lateral movement within the network.

Affected Products

  • Langflow versions prior to 1.8.0
  • Langflow CSV Agent component
  • Systems utilizing LangChain's python_repl_ast tool through Langflow

Discovery Timeline

  • 2026-02-26 - CVE-2026-27966 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-27966

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code - Code Injection). The flaw exists in the CSV Agent component of Langflow, where the allow_dangerous_code parameter is hardcoded to True. This configuration decision exposes LangChain's python_repl_ast tool, which provides a Python Read-Eval-Print Loop (REPL) capability directly within the agent workflow.

The architectural flaw allows user-controlled input to be processed by the agent, which can then execute arbitrary Python code through the exposed REPL tool. Since the CSV Agent is designed to process user prompts for data analysis, an attacker can craft malicious prompts that inject Python code instead of legitimate data queries.

Root Cause

The root cause of this vulnerability is the hardcoded insecure configuration in the CSV Agent component. By setting allow_dangerous_code=True by default, the component inherently trusts all input and permits code execution without any sanitization or user consent. This violates the principle of secure-by-default design and fails to implement proper input validation boundaries between user prompts and code execution capabilities.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Sending a crafted prompt to a Langflow instance running the CSV Agent
  2. Embedding Python code within the prompt that gets interpreted by the python_repl_ast tool
  3. Executing arbitrary commands including OS-level operations through Python's subprocess or os modules
  4. Achieving full RCE with the privileges of the Langflow process

The security patch addresses this by adding a BoolInput control to allow administrators to explicitly configure whether dangerous code execution should be permitted:

python
    HandleInput,
    MessageTextInput,
)
+from lfx.io import BoolInput
from lfx.schema.message import Message
from lfx.services.deps import get_settings_service
from lfx.template.field.base import Output

Source: GitHub Commit Update

The component hash was also updated to track the security fix:

text
   },
   "CSVAgent": {
     "versions": {
-      "0.3.0": "97947e212da9"
+      "0.3.0": "4978be110e63"
     }
   },
   "LangChainFakeEmbeddings": {

Source: GitHub Commit Update

Detection Methods for CVE-2026-27966

Indicators of Compromise

  • Unusual Python subprocess or os module calls originating from Langflow processes
  • Unexpected network connections initiated by the Langflow server to external hosts
  • Anomalous file system operations in directories accessible to the Langflow service account
  • Evidence of prompt injection patterns in application logs containing Python code syntax

Detection Strategies

  • Monitor Langflow application logs for prompts containing Python keywords such as import, exec, eval, subprocess, or os.system
  • Deploy network monitoring to detect outbound connections from Langflow instances to unexpected destinations
  • Implement runtime application self-protection (RASP) to detect code execution attempts within the agent workflow
  • Use SentinelOne's behavioral AI to identify anomalous process spawning from Langflow parent processes

Monitoring Recommendations

  • Enable verbose logging for the CSV Agent component to capture all input prompts
  • Configure alerting for any shell command execution originating from Python processes associated with Langflow
  • Monitor for file creation or modification in sensitive system directories by Langflow processes
  • Implement egress filtering and alert on any data exfiltration attempts from Langflow hosts

How to Mitigate CVE-2026-27966

Immediate Actions Required

  • Upgrade Langflow to version 1.8.0 or later immediately
  • If upgrade is not immediately possible, disable or remove the CSV Agent component from all workflows
  • Review Langflow logs for any signs of exploitation prior to patching
  • Isolate Langflow instances from critical network segments until patched

Patch Information

The vulnerability is fixed in Langflow version 1.8.0. The patch introduces a BoolInput configuration option that allows administrators to explicitly control whether dangerous code execution is permitted in the CSV Agent. By default, this is now set to False, implementing a secure-by-default configuration.

For technical details on the fix, refer to:

  • GitHub Commit Update
  • GitHub Security Advisory GHSA-3645

Workarounds

  • Disable the CSV Agent component entirely in Langflow deployments until an upgrade can be performed
  • Implement network segmentation to restrict Langflow server access to trusted sources only
  • Deploy a web application firewall (WAF) with rules to detect and block common prompt injection patterns
  • Run Langflow in a sandboxed environment with minimal privileges and no outbound network access
bash
# Configuration example: Restricting Langflow network access with iptables
# Drop all outbound connections from Langflow except to required services
iptables -A OUTPUT -m owner --uid-owner langflow -d 127.0.0.1 -j ACCEPT
iptables -A OUTPUT -m owner --uid-owner langflow -p tcp --dport 443 -d api.allowed-service.com -j ACCEPT
iptables -A OUTPUT -m owner --uid-owner langflow -j DROP

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.8

  • EPSS Probability0.29%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-3645
  • Related CVEs
  • CVE-2026-0770: Langflow exec_globals RCE Vulnerability

  • CVE-2026-0769: Langflow eval_custom_component_code RCE Flaw

  • CVE-2026-0772: Langflow Deserialization RCE Vulnerability

  • CVE-2026-0771: Langflow PythonFunction RCE Vulnerability
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
  • English
  • 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