In 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
Flowise Prompt Injection to RCE and SSRF via CSV/Airtable Agent Python Validator Bypass
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.
The advisory verifies multiple code vectors that bypass the regex blacklist one by one, and explains why the previous ZDI patch did not cover these paths, which can be used to self-check self-hosted Flowise deployments.