CVE Feed
9.8 Critical

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

CVE-2026-27966

1. Summary The CSV Agent node in Langflow hardcodes allowdangerouscode=True, which automatically exposes LangChain’s Python REPL tool (pythonreplast). 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). 2. Description 2.1 Intended Functionality 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. 2.2 Root Cause In src/lfx/src/lfx/components/langchainutilities/csvagent.py, the CSV Agent is instantiated as follows: python agentkwargs = { "verbose": self.verbose, "allowdangerouscode": True, # hardcoded } agentcsv = createcsvagent(..., agentkwargs) Because allowdangerouscode is hardcoded to True, LangChain automatically enables the pythonreplast tool. Any LLM output that issues an action such as: Action: pythonreplast Action Input: import("os").system("echo pwned > /tmp/pwned") is executed directly on the server. There is no UI toggle or environment variable to disable this behavior. 3. Proof of Concept…

A ready-made exploit module exists

Metasploit · Public PoC

Signals come from Exploit-DB, Metasploit, Nuclei and published proof-of-concept repositories. Their absence means nothing was found, not that nothing exists.

Part of the AI stack

This affects Langflow, in Agent frameworks.

Assessment

CVSS
9.8 (v3.1)
Severity
Critical
EPSS
35.25% chance of exploitation in the next 30 days
Known exploited
Not listed in CISA KEV
Exploit availability
Metasploit, Public PoC
Published
26 February 2026
Last updated
27 October 2026
Weakness
CWE-94
Assigner
security-advisories@github.com

CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

At the source

References

Community proofs of concept

No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.

Submit a proof of concept
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-27966