CVE-2026-70477: CWE-94: Improper Control of Generation of Code ('Code Injection') in FlowiseAI Flowise
CVE-2026-70477 is a critical code injection vulnerability in FlowiseAI's Flowise product prior to version 3.1.3. It allows an attacker to send a specially crafted prompt to a chatflow using a CSV Agent node, causing the large language model to generate and execute malicious Python code in an unsandboxed Pyodide environment. This occurs due to improper validation of the generated code in the run method of the CSV_Agents class. The vulnerability enables arbitrary code execution with the privileges of the service account. The issue is fixed in version 3.1.3.
AI Analysis
Technical Summary
Flowise is a drag-and-drop interface for building customized large language model flows. In versions before 3.1.3, the CSV Agent node's run method improperly controls code generation by using untrusted input to construct an LLM prompt. The resulting Python code is validated by validatePythonCodeForDataFrame but this validation can be bypassed, allowing execution of arbitrary Python scripts in an unsandboxed Pyodide environment. This leads to code injection (CWE-94) and arbitrary code execution in the context of the service account. The vulnerability is addressed in Flowise version 3.1.3.
Potential Impact
An attacker can exploit this vulnerability to execute arbitrary Python code within the Flowise environment without sandbox restrictions, potentially compromising the service account and any resources accessible to it. This could lead to unauthorized actions, data exposure, or further system compromise. The CVSS 4.0 base score is 9.5, indicating a critical severity with network attack vector, high complexity, and no privileges or user interaction required.
Mitigation Recommendations
Upgrade Flowise to version 3.1.3 or later, where this vulnerability is fixed. No other mitigation is indicated or required as the fix addresses the root cause of the code injection vulnerability.
CVE-2026-70477: CWE-94: Improper Control of Generation of Code ('Code Injection') in FlowiseAI Flowise
Description
CVE-2026-70477 is a critical code injection vulnerability in FlowiseAI's Flowise product prior to version 3.1.3. It allows an attacker to send a specially crafted prompt to a chatflow using a CSV Agent node, causing the large language model to generate and execute malicious Python code in an unsandboxed Pyodide environment. This occurs due to improper validation of the generated code in the run method of the CSV_Agents class. The vulnerability enables arbitrary code execution with the privileges of the service account. The issue is fixed in version 3.1.3.
CVSS v4.0
Score 9.5critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Flowise is a drag-and-drop interface for building customized large language model flows. In versions before 3.1.3, the CSV Agent node's run method improperly controls code generation by using untrusted input to construct an LLM prompt. The resulting Python code is validated by validatePythonCodeForDataFrame but this validation can be bypassed, allowing execution of arbitrary Python scripts in an unsandboxed Pyodide environment. This leads to code injection (CWE-94) and arbitrary code execution in the context of the service account. The vulnerability is addressed in Flowise version 3.1.3.
Potential Impact
An attacker can exploit this vulnerability to execute arbitrary Python code within the Flowise environment without sandbox restrictions, potentially compromising the service account and any resources accessible to it. This could lead to unauthorized actions, data exposure, or further system compromise. The CVSS 4.0 base score is 9.5, indicating a critical severity with network attack vector, high complexity, and no privileges or user interaction required.
Mitigation Recommendations
Upgrade Flowise to version 3.1.3 or later, where this vulnerability is fixed. No other mitigation is indicated or required as the fix addresses the root cause of the code injection vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-04T15:24:41.339Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a724791bf8831d5396138df
Added to database: 08/04/2026, 20:12:01 UTC
Last enriched: 08/04/2026, 20:26:34 UTC
Last updated: 08/04/2026, 20:31:51 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.