Flowise: CSV Agent Remote Code Execution via Pyodide Code Injection — Root Shell Verified
Description
Flowise is a drag & drop user interface to build a customized large language model flow. Prior to 3.1.3, the CSVAgent in packages/components/nodes/agents/CSVAgent/CSVAgent.ts extracted attacker-controlled CSV data with file.split(',').pop() and interpolated it directly into executable Python as base64_string = "${base64String}" before calling Pyodide. The validatePythonCodeForDataFrame() denylist only checked later LLM-generated code and did not validate this initial code block. An authenticated attacker could inject a closing quote followed by Python code, use Pyodide's js bridge to load Node.js child_process, and execute arbitrary operating system commands as root in the Flowise container. This issue is fixed in version 3.1.3.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
flowisenpm | < 3.1.3 | 3.1.3 |
flowise-componentsnpm | < 3.1.3 | 3.1.3 |
Affected products
1Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-vmv7-4m6c-3cg5ghsaADVISORY
- github.com/FlowiseAI/Flowise/commit/f4e2794f6a576b94578f2fdafbf49c2fb304626cghsax_refsource_MISCWEB
- github.com/FlowiseAI/Flowise/pull/6499ghsax_refsource_MISCWEB
- github.com/FlowiseAI/Flowise/releases/tag/flowise%403.1.3ghsax_refsource_MISCWEB
- github.com/FlowiseAI/Flowise/security/advisories/GHSA-vmv7-4m6c-3cg5ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.