Flowise agent prompt injection vulnerability can lead to code execution and data exfiltration
Start here
Trend Micro's Zero Day Initiative disclosed that the CSV Agent node in Flowise has a remote code execution vulnerability caused by prompt injection (CVE-2026-70477 / GHSA-5xvg-pmgg-3mxr), with a CVSS score of 9.8, exploitable without authentication, tested on version 3.1.1 on the Ubuntu 25.10 platform. The vulnerability is in the run method of the CSV_Agents class: the method concatenates CSV column names and user input into the system prompt and passes the code returned by the LLM to Python for execution. A subsequent GitHub security advisory stated that the CSV Agent and Airtable Agent in Flowise 3.1.2 and earlier versions validate LLM-generated Python code only with a 38-entry regex blacklist, which can be bypassed via prompt injection through the unauthenticated prediction API, with a CVSS score of 9.3; the validation does not block pandas functions that accept URLs, such as pd.read_json, pd.read_csv, and pd.read_html, allowing an attacker to send the entire dataset to an external destination via a URL request, resulting in data exfiltration and SSRF. The issue was fixed in 3.1.3.
Generated by AI from reports · Updated 19 days ago
Storyline
- · 2 reports· Attention42
Flowise agent prompt injection vulnerability can lead to code execution and data exfiltrationThis event
- · 1 reports· Attention41Research reveals prompt injection leading to RCE vulnerabilities in 7 AI orchestration platforms
Latest developments
Progress timeline
- GitHub Security AdvisoriesSelectedIn Flowise 3.1.2 and earlier versions, the CSV and Airtable Agents can bypass Python validation via prompt injection, leading to data exfiltration and SSRF
In Flowise 3.1.2 and earlier versions, the CSV Agent and Airtable Agent validate LLM-generated Python code using a 38-entry regex blacklist, which can be bypassed via prompt injection through the unauthenticated prediction API; it was fixed in 3.1.3, CVSS score 9.3. The validation does not block pandas functions that accept URLs, such as pd.read_json, pd.read_csv, and pd.read_html; an attacker can cause the entire dataset to be sent to an external server with a URL request, and can also launch SSRF against internal network services and cloud metadata endpoints; importlib, chr(), and np.ctypeslib are likewise not covered. The discoverer is Peyton Kennedy of Endor Labs.
- Date not givenFlowiseAI/FlowiseSelectedFlowise CSV Agent node has a prompt injection remote code execution vulnerability (CVE-2026-70477)
Trend Micro's Zero Day Initiative (ZDI) disclosed a prompt injection vulnerability in Flowise's CSV Agent node leading to remote code execution, numbered CVE-2026-70477 / GHSA-5xvg-pmgg-3mxr, with a CVSS score of 9.8, exploitable without authentication. The tested version is 3.1.1, on Ubuntu 25.10. The vulnerability is in the run method of the CSV_Agents class: it concatenates CSV column names and user input into the system prompt, and executes the code returned by the LLM directly in unsandboxed pyodide after validation by a regex blacklist in pythonCodeValidator.ts, with no isolation between pyodide and the host operating system. Attackers can also configure a chatflow pointing to a self-controlled server to directly return malicious Python payloads, bypassing the LLM. The PoC provides three modes—server, chatflow, and prompt_injection—and can execute arbitrary commands.