CVE-2026-27966

Langflow has Remote Code Execution in CSV Agent

Published Feb 26, 2026 CVSS 3.1 · 9.8 Critical EPSS 3.0% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Langflow exposes its CSV Agent node with a hardcoded flag that automatically enables a Python REPL tool. By injecting malicious prompts, an attacker can execute arbitrary Python or operating‑system commands on the server, granting full remote code execution. The flaw is a code injection vulnerability (CWE-94).

Affected Systems

The vulnerability is present in the langflow‑ai langflow product in all releases prior to version 1.8.0. Users running Langflow 1.7.x or earlier are at risk.

Risk and Exploitability

The CVSS score of 9.8 marks the vulnerability as critical. The EPSS score of 3% indicates a low probability that this vulnerability may be actively exploited, and it is not listed in CISA’s KEV catalog. The likely attack vector is a remote prompt injection into the CSV Agent node, which can be performed by anyone with the ability to add or modify a workflow that uses this node. Once exploited, the attacker can run arbitrary code on the host and potentially gain full system compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Langflow to version 1.8.0 or later, where the hard‑coded flag is removed and the vulnerability is fixed.
  • If an immediate upgrade is not possible, temporarily remove or disable the CSV Agent node from all active workflows to prevent exploitation while a fix is applied.
  • If disabling the node is not feasible, run Langflow in a container with minimal privileges and limited network access to isolate the potential compromise from critical infrastructure.

Generated by OpenCVE AI on November 26, 2026 at 05:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3645-fxcv-hqr4 Langflow has Remote Code Execution in CSV Agent
History
Type Values Removed Values Added
CPEs cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Langflow
Langflow langflow
Vendors & Products Langflow
Langflow langflow
Type Values Removed Values Added
Description 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.
Title Langflow has Remote Code Execution in CSV Agent
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 28, 2026, 4:55 AM
Reserved
Feb 25, 2026, 3:24 AM
Status
Analyzed
Published
Feb 26, 2026, 2:16 AM
Modified
Jun 17, 2026, 10:27 AM