All vulnerabilities

Servers and applications

CVE-2026-27966

Remote Code Execution in CSV Agent

Severity
Critical 9.8
Published
25 Feb 2026
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.6.9, 1.8.0
Exploit chance
35% in the next 30 daysHigher than 98% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Code injection (CWE-94)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-3645-fxcv-hqr4
Sources
NVD, Project advisories (GitHub)

Description

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

When building a flow such as ChatInput → CSVAgent → ChatOutput, users can attach an LLM and specify a CSV file path. The CSV Agent then provides capabilities to query, summarize, or manipulate the CSV content using an LLM-driven agent.

In src/lfx/src/lfx/components/langchain_utilities/csv_agent.py, the CSV Agent is instantiated as follows:

Because allow_dangerous_code is hardcoded to True, LangChain automatically enables the python_repl_ast tool. Any LLM output that issues an action such as:

is executed directly on the server.

There is no UI toggle or environment variable to disable this behavior.

From langflow-ai/langflow's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LangflowServers and applications · cpe:a:langflow:langflow
  • Every version before 1.8.0
LangflowServers and applications · github:langflow-ai/langflow
  • Every version before 1.6.9

About Langflow

Langflow is a powerful tool for building and deploying AI-powered agents and workflows.

From its GitHub repository.
Weekly downloads (PyPI)
8,374PyPI Stats, 15 Nov 2026
Docker Hub pulls
4,731,179Docker Hub, 15 Nov 2026
GitHub stars
156,656GitHub, 15 Nov 2026
Forks
10,412GitHub, 15 Nov 2026
Latest release
v1.13.2GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
MITGitHub
First published on GitHub
8 Feb 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-27966
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-27966
  • GitHub Advisory Database https://github.com/advisories/GHSA-3645-fxcv-hqr4
  • github.com https://github.com/langflow-ai/langflow/security/advisories/GHSA-3645-fxcv-hqr4