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.
Affected software
| Software | Affected versions |
|---|---|
LangflowServers and applications · cpe:a:langflow:langflow |
|
LangflowServers and applications · github:langflow-ai/langflow |
|
About Langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
- 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
Source code Website Docker image Package
Vulnerabilities in Langflow
- In our list
- 228
- Published in the last 12 months
- 221
- Critical, last 12 months
- 60
- High, last 12 months
- 101
- Known exploited
- 6
- CVE-2026-97677Langflow OSS is affected by multiple vulnerabilitiesHigh 8.1 8 Nov 2026
- GHSA-qvqp-mxh4-f27wLangflow URL component: unbounded response size allows denial of service via memory exhaustionMedium 6.5 5 Nov 2026
- CVE-2026-18894Langflow OSS is affected by multiple vulnerabilitiesCritical 9.8 29 Oct 2026
- CVE-2026-77817Langflow OSS is affected by multiple vulnerabilitiesMedium 6.5 29 Oct 2026
- CVE-2026-77819Langflow OSS is affected by multiple vulnerabilitiesMedium 6.5 29 Oct 2026
- CVE-2026-90991Langflow OSS is affected by multiple vulnerabilitiesMedium 6.5 29 Oct 2026
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