Skip to main content

FlowiseAI Flowise CVE-2026-41264

CRITICAL
Incomplete List of Disallowed Inputs (CWE-184)
2026-04-21 https://github.com/FlowiseAI/Flowise GHSA-3hjv-c53m-58jj
9.2
CVSS 4.0 · Vendor: https://github.com/FlowiseAI/Flowise
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed Flowise chatflow endpoint
  2. Delivery
    Send prompt injection to CSV Agent node
  3. Exploit
    LLM emits denylist-bypassing Python (os aliased)
  4. Execution
    Code passes FORBIDDEN_PATTERNS validation
  5. Persist
    Evaluated in non-sandboxed pyodide
  6. Impact
    Execute OS commands as server user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
Exploitation Conditions

Exploitation requires the target to run a Flowise chatflow that includes the CSV Agent node and to expose the chatflow/API endpoint (Express server, default port 3000/TCP) to the attacker. The unauthenticated path (per advisory, authentication is not required) additionally depends on prompt injection succeeding - the attacker must coerce the configured LLM into emitting Python that bypasses validatePythonCodeForDataFrame() (e.g. aliasing the os module via an 'import pandas ..., os as pandas' construct), a probabilistic step reflected by CVSS AC:H and AT:P. Limiting factors: the CSV Agent node must be deployed (not present in every chatflow), the endpoint must be reachable, and the deterministic variant instead requires authenticated ability to specify an attacker-controlled model server. Affected version is <= 3.0.13.

Impact

The signals conflict, so prioritization requires care. Technical impact is total (SSVC Technical Impact: total; CVSS 4.0 VC:H/VI:H/VA:H) and a public POC exists, arguing for urgency. However, several signals temper real-world risk: EPSS is only 0.11% (29th percentile), the CVE is not on CISA KEV so there is no confirmed active exploitation, and SSVC marks Automatable: no. The CVSS 4.0 vector itself encodes friction - AC:H and AT:P (attack requirements present) - reflecting that the unauthenticated path depends on reliably coercing a non-deterministic LLM via prompt injection into emitting the exact allow-list-bypassing Python. Exploitation also requires that a target actually deploys a chatflow using the CSV Agent node, a specific and non-universal configuration; the most reliable path (attacker-controlled model server returning malicious code) requires authentication/config control. Net: a genuinely high-impact RCE that is real but not trivially mass-exploitable - high priority for environments running the CSV Agent node, lower for Flowise deployments that do not use it.

Exploit ScenarioDerived

An attacker who can send chat prompts to an internet-reachable Flowise chatflow containing a CSV Agent node submits a prompt-injection payload instructing the backing LLM to output Python such as 'import pandas as np, os as pandas' followed by 'pandas.system("<command>")'. The code passes the flawed FORBIDDEN_PATTERNS denylist and is evaluated in the non-sandboxed pyodide environment, running attacker commands as the Flowise server user. A public POC exists; reliability of the unauthenticated path is limited by the LLM's willingness to emit the exact payload (CVSS AC:H/AT:P), and an authenticated attacker can bypass that uncertainty by configuring the node to use an attacker-controlled model server that returns the malicious code directly.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Remote code execution in FlowiseAI Flowise (<= 3.0.13) allows attackers to run arbitrary OS commands on the server hosting a chatflow that uses the CSV Agent node. The CSV_Agents.run method evaluates LLM-generated Python in a non-sandboxed pyodide environment, and its FORBIDDEN_PATTERNS regex allow-list can be bypassed to import the os module and invoke system commands. An unauthenticated attacker can reach this via prompt injection against the chatflow, or an authenticated attacker can point the node at an attacker-controlled model server; publicly available exploit code exists, though EPSS remains low at 0.11%.

RemediationAI

Vendor-released patch: upgrade both flowise and flowise-components to 3.1.0 or later (e.g. npm install -g flowise@3.1.0), as documented in GHSA-3hjv-c53m-58jj (https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-3hjv-c53m-58jj). If immediate patching is not possible, remove or disable any chatflow that uses the CSV Agent node, since that node is the sole exploitation surface - the trade-off is loss of CSV-query agent functionality. Additionally, restrict network exposure of the Flowise web server and API (default port 3000/TCP) to trusted networks and enforce authentication in front of it to eliminate the unauthenticated prompt-injection path, at the cost of reduced remote accessibility for legitimate users. As defense in depth, run the Flowise process as a low-privilege, containerized user so pyodide-executed code cannot reach sensitive host resources; this reduces but does not eliminate impact, since the process user's context remains exposed.

Affected Packages

npm flowise fix: 3.1.0
npm flowise-components fix: 3.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Flowise is an open-source low-code platform for building LLM applications and AI agents, exposed via an Express web server (HTTP, port 3000/TCP by default per the advisory setup) and shipped as the npm packages flowise and flowise-components (pkg:npm/flowise, pkg:npm/flowise-components). The vulnerable CSV Agent node reads a CSV, extracts column names/types with pandas, prompts an LLM to emit pandas code answering a user question, then executes that code inside a pyodide (WebAssembly Python) runtime via CSV_Agents.run in packages/components/nodes/agents/CSVAgent/core.ts. The root cause maps to CWE-184 (Incomplete List of Disallowed Inputs): the validatePythonCodeForDataFrame() denylist of regex FORBIDDEN_PATTERNS is meant to block import/exec/eval/open/os/subprocess, but a pattern such as /\bimport\s+(?!pandas|numpy\b)/g only inspects the first module token, so a statement like 'import pandas as np, os as pandas' smuggles in the os module. Because the pyodide evaluation is not sandboxed against host command execution here, the smuggled module enables arbitrary OS command invocation in the context of the server process user.

Know when Trend Micro gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/FlowiseAI/Flowise) PRIMARY 9.2 CRITICAL
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Network-reachable and unauthenticated (AV:N/PR:N), but AC:H because reliable RCE depends on coercing the LLM into the exact denylist-bypassing code; full C/I/A as code runs as the server user, scope unchanged.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/FlowiseAI/Flowise).

CVSS VectorVendor: https://github.com/FlowiseAI/Flowise

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 23, 2026 - 20:26 NVD
9.2 (CRITICAL)
Patch released
Apr 22, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 21, 2026 - 20:19 nvd
CRITICAL 9.2

DescriptionCVE.org

Abstract

Trend Micro's Zero Day Initiative has identified a vulnerability affecting FlowiseAI Flowise.

Vulnerability Details

  • Version tested: 3.0.13
  • Installer file: https://github.com/FlowiseAI/Flowise
  • Platform tested: Ubuntu 25.10

Analysis

This vulnerability allows remote attackers to execute arbitrary code on affected installations of FlowiseAI Flowise. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the run method of the CSV_Agents class. The issue results from the lack of proper sandboxing when evaluating an LLM-generated Python script. An attacker can leverage this vulnerability to execute code in the context of the user running the server.

Product Information

FlowiseAI Flowise version 3.0.13 - https://github.com/FlowiseAI/Flowise

Setup Instructions

bash
npm install -g flowise@3.0.13
npx flowise start

Root Cause Analysis

FlowiseAI Flowise is an open source low-code tool for developers to build customized large language model (LLM) applications and AI agents. It supports integration with various LLMs, data sources, and tools in order to facilitate rapid development and deployment of AI solutions. Flowise offers a web interface with a drag-and-drop editor, as well as an API, through an Express web server accessible over HTTP on port 3000/TCP.

One such feature of Flowise is the ability to create chatflows. Chatflows use a drag-and-drop editor that allows a developer to place nodes which control how an interaction with an LLM will occur. One such node is the CSV Agent node that represents an Agent used to answer queries on a provided CSV file.

When a user makes a query against a chatflow using the CSV Agent node, the run method of the CSV_Agents class is called. This method first reads the contents of the CSV file passed to the node and converts it to a base64 string. It then sets up a pyodide environment and creates a Python script to be executed in this environment. This Python script uses pandas to extract the column names and their types from the provided CSV file. The method then creates a system prompt for an LLM using this data as follows:

You are working with a pandas dataframe in Python. The name of the dataframe is df.

The columns and data types of a dataframe are given below as a Python dictionary with keys showing column names and values showing the data types.
{dict}

I will ask question, and you will output the Python code using pandas dataframe to answer my question. Do not provide any explanations. Do not respond with anything except the output of the code.

Security: Output ONLY pandas/numpy operations on the dataframe (df). Do not use import, exec, eval, open, os, subprocess, or any other system or file operations. The code will be validated and rejected if it contains such constructs.

Question: {question}
Output Code:

Where {dict} is the extracted column names and {question} is the initial prompt provided by the user.

This system prompt is sent to an LLM in order for it to generate a Python script based on the user's prompt, and the LLM-generated response is stored in a variable named pythonCode. The method then evaluates the pythonCode variable in a pyodide environment.

While the LLM-generated Python script is evaluated in a non-sandboxed environment, there is a list of forbidden patterns that are checked before the script is executed on the server. The function validatePythonCodeForDataFrame() enumerates through a list named FORBIDDEN_PATTERNS, which contains pairs of regex patterns and reasons. Each regex pattern is run against the Python script, and if the pattern is found in the script, the script is invalidated and is not run, responding to the request with a reason for rejection.

The input validation can be bypassed, which can still lead to running arbitrary OS commands on the server. An example of this is the pattern /\bimport\s+(?!pandas|numpy\b)/g, which intends to search for lines of code that import a module other than pandas or numpy. This can be bypassed by importing along with pandas or numpy. For example, consider the following lines of code:

python
import pandas as np, os as pandas
pandas.system("xcalc")

Here, pandas is imported, but so is the os module, with pandas as its alias. OS commands can then be invoked with pandas.system().

Using prompt injection techniques, an unauthenticated attacker with the ability to send prompts to a chatflow using the CSV Agent node may convince an LLM to respond with a malicious Python script that executes attacker-controlled commands on the Flowise server.

It is also possible for an authenticated attacker to exploit this vulnerability by specifying an attacker-controlled server in a chatflow. This server would respond to prompts with an attacker-controlled Python script instead of an LLM-generated response, which would then be evaluated on the server.

Relevant Source Code

packages/components/nodes/agents/CSVAgent/core.ts
ts
import type { PyodideInterface } from 'pyodide'
import * as path from 'path'
import { getUserHome } from '../../../src/utils'

let pyodideInstance: PyodideInterface | undefined

export async function LoadPyodide(): Promise<PyodideInterface> {
    if (pyodideInstance === undefined) {
        const { loadPyodide } = await import('pyodide')
        const obj: any = { packageCacheDir: path.join(getUserHome(), '.flowise', 'pyodideCacheDir') }
        pyodideInstance = await loadPyodide(obj)
        await pyodideInstance.loadPackage(['pandas', 'numpy'])
    }

    return pyodideInstance
}

export const systemPrompt = `You are working with a pandas dataframe in Python. The name of the dataframe is df.

The columns and data types of a dataframe are given below as a Python`*

Executive ViewAI

Why It Matters

FlowiseAI Flowise versions up to 3.0.13 contain a critical remote code execution vulnerability affecting the CSV Agent node. Unauthenticated attackers can exploit this through prompt injection to execute arbitrary OS commands on hosting servers, with publicly available exploit code in circulation. Organizations using Flowise chatflows face complete server compromise, enabling data theft, malware deployment, and lateral movement into internal networks.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 71% exploitable
Prevalence
Medium
popular open-source LLM-app builder, common in AI dev but not ubiquitous infra
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA POC (1) GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat Yes
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

81
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: +15
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

pkg:npm/flowise
pkg:npm/flowise-components
CVE-2016-7552 CRITICAL POC
9.8 Apr 12

On the Trend Micro Threat Discovery Appliance 2.6.1062r1, directory traversal when processing a session_id cookie allows

CVE-2016-7547 CRITICAL POC
9.8 Apr 12

A command execution flaw on the Trend Micro Threat Discovery Appliance 2.6.1062r1 exists with the timezone parameter in

CVE-2017-11394 CRITICAL POC
9.8 Aug 03

Proxy command injection vulnerability in Trend Micro OfficeScan 11 and XG (12) allows remote attackers to execute arbitr

CVE-2017-11391 HIGH POC
8.8 Aug 03

Proxy command injection vulnerability in Trend Micro InterScan Messaging Virtual Appliance 9.0 and 9.1 allows remote att

CVE-2017-11392 HIGH POC
8.8 Aug 03

Proxy command injection vulnerability in Trend Micro InterScan Messaging Virtual Appliance 9.0 and 9.1 allows remote att

CVE-2016-6267 HIGH POC
8.8 Jan 30

SnmpUtils in Trend Micro Smart Protection Server 2.5 before build 2200, 2.6 before build 2106, and 3.0 before build 1330

CVE-2017-6398 HIGH POC
8.8 Mar 14

An issue was discovered in Trend Micro InterScan Messaging Security (Virtual Appliance) 9.1-1600. Rated high severity (C

CVE-2017-7896 MEDIUM POC
6.1 Apr 18

Trend Micro InterScan Messaging Security Virtual Appliance (IMSVA) 9.1 before CP 1644 has XSS. Rated medium severity (CV

CVE-2017-14078 CRITICAL
9.8 Sep 22

SQL Injection vulnerabilities in Trend Micro Mobile Security (Enterprise) versions before 9.7 Patch 3 allow remote attac

CVE-2016-3987 CRITICAL POC
9.8 Apr 12

The HTTP server in Trend Micro Password Manager allows remote web servers to execute arbitrary commands via the url para

CVE-2012-1461 MEDIUM
4.3 Mar 21

The Gzip file parser in AVG Anti-Virus 10.0.0.1190, Bitdefender 7.2, Command Antivirus 5.2.11.5, Emsisoft Anti-Malware 5

CVE-2012-1459 MEDIUM
4.3 Mar 21

The TAR file parser in AhnLab V3 Internet Security 2011.01.18.00, Avira AntiVir 7.11.1.163, Antiy Labs AVL SDK 2.0.3.7,

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy