Langflow
CVE-2026-27966
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted prompt to CSV Agent node
-
ExploitInject malicious Python code via LangChain REPL
-
ExecutionExecute arbitrary commands on server
-
ImpactAchieve full remote code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Langflow versions prior to 1.8.0 with CSV Agent node active. The node hardcodes allow_dangerous_code=True, automatically enabling LangChain's python_repl_ast tool. No authentication or special configuration required — remote unauthenticated RCE against vulnerable Langflow deployments. |
| Impact | CVSS 9.8, EPSS 0.41%. Langflow is a popular AI workflow builder — CSV import is a common operation. |
| Exploit ScenarioDerived | Attacker provides crafted CSV file to a Langflow workflow, the CSV Agent processes it with dangerous code execution enabled, achieving RCE. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
Code injection in Langflow CSV Agent node before 1.8.0. The node hardcodes allow_dangerous_code=True, enabling arbitrary code execution through crafted CSV files. EPSS 0.41% with PoC and patch available.
Earlier versions of this analysis (1)
Code injection via CSV Agent in Langflow AI workflow tool.
RemediationAI
Update to Langflow 1.8.0.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-94 in Langflow's CSV Agent node which sets allow_dangerous_code=True, allowing pandas eval() execution on CSV data.
Know when Langflow gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
Langflow is 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 (RCE). Version 1.8.0 fixes the issue.
Articles & Coverage 1
Executive ViewAI
Langflow versions prior to 1.8.0 contain a critical vulnerability that allows unauthenticated attackers to execute arbitrary Python code on affected systems. Organizations using Langflow for AI workflows face immediate risk of complete system compromise, data theft, and lateral movement within their infrastructure.
Apply vendor patch. If immediate patching is unavailable: (1) Disable or restrict access to CSV Agent nodes; (2) Implement network segmentation to limit Langflow exposure to trusted networks only; (3) Deploy WAF rules to block requests to CSV Agent endpoints; (4) Enable comprehensive logging and monitoring for Python code execution attempts; (5) Restrict Langflow service account permissions to minimize blast radius.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)GitHub Advisory
Langflow before 1.3.0 allows unauthenticated remote code injection through the /api/v1/validate/code endpoint, enabling
Langflow has a third RCE vulnerability via exec_globals (EPSS 10.0%) allowing inclusion of untrusted code that executes
Account takeover and remote code execution in Langflow AI workflow platform versions ≤1.6.9 due to a CORS misconfigurati
Langflow has a code injection vulnerability in the code component (EPSS 2.6%) enabling remote code execution through the
Langflow has an eval injection in eval_custom_component_code (EPSS 2.0%) enabling remote code execution through crafted
Remote code execution in IBM Langflow OSS 1.0.0 through 1.9.3 lets an unauthenticated attacker inject and run arbitrary
Langflow through 0.6.19 allows remote code execution if untrusted users are able to reach the "POST /api/v1/custom_compo
OS command injection in Langflow's MCP stdio transport allows an attacker who can reach the MCP server configuration end
langflow <=1.0.18 is vulnerable to Remote Code Execution (RCE) as any component provided the code functionality and the
langflow v1.0.12 was discovered to contain a remote code execution (RCE) vulnerability via the PythonCodeTool component.
Langflow before 1.7.0.dev45 exposes multiple API endpoints without authentication, allowing unauthenticated access to us
An unauthenticated shell injection vulnerability exists in Langflow's GitHub Actions CI/CD workflows, allowing attackers
GHSA-3645-fxcv-hqr4
NVD
CVE.org
EPSS
Exploit-DB