Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-70477 — flowise

🔴 CVSS 9.5 — Critical ✅ No Known Exploit CWE-94 NVD
9.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Flowise: CSV Agent Prompt Injection Remote Code Execution Vulnerability

-- ABSTRACT -------------------------------------

Trend Micro's Zero Day Initiative has identified a vulnerability affecting the following products:

Flowise - Flowise

-- VULNERABILITY DETAILS ------------------------

  • Version tested: 3.1.1
  • Installer file: https://github.com/FlowiseAI/Flowise (npm install [email protected])
  • Platform tested: Ubuntu 25.10

A prompt injection sent to a chatflow using a CSV Agent node can cause the LLM to respond with a malicious Python script that bypasses the blocklist validator and executes in an unsandboxed pyodide environment. An attacker can leverage this to execute arbitrary code in the context of the user running the server.

```

This vulnerability allows remote attackers to execute arbitrary code on affected installations of 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 insufficient input sanitization when using untrusted data to construct an LLM prompt. An attacker can leverage this vulnerability to execute code in the context of the service account.

```

Analysis

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 reads the CSV file, loads a pyodide environment, and uses pandas to extract column names and data types into a dictionary. It then constructs a system prompt using that dictionary and the user's input, and sends this prompt to a configured LLM. The LLM response is stored in a variable named pythonCode. The method then attempts to validate this value using validatePythonCodeForDataFrame from packages/components/src/pythonCodeValidator.ts before evaluating it in pyodide.

The validator relies on a static regex blocklist. It can be bypassed using obfuscation techniques including string concatenation to reconstruct forbidden identifiers, chr() encoding, aliasing of dangerous builtins, __getattribute__ with concatenated attribute names, frame object inspection, MRO traversal, df.query() expression evaluation, and decorator syntax to invoke exec indirectly. Furthermore, pyodide is not sandboxed from the host operating system, so any Python code that passes the validator is executed with full access to OS interfaces.

From packages/components/nodes/agents/CSVAgent/CSVAgent.ts:

```ts

let pythonCode = ''

if (dataframeColDict) {

const chain = new LLMChain({

llm: model,

prompt: PromptTemplate.fromTemplate(systemPrompt),

verbose: process.env.DEBUG === 'true' ? true : false

})

const inputs = {

dict: dataframeColDict,

question: input // user-controlled input substituted into prompt

}

const res = await chain.call(inputs, [loggerHandler, ...callbacks])

pythonCode = res?.text // LLM response assigned to pythonCode

pythonCode = pythonCode.replace(/^``[a-z]+\n|\n``$/gm, '')

}

let finalResult = ''

if (pythonCode) {

const validation = validatePythonCodeForDataFrame(pythonCode) // blocklist validation applied

if (!validation.valid) {

throw new Error(

`Generated code was rejected for security reasons (${

validation.reason ?? 'unsafe construct'

}). Please rephrase your question to use only pandas DataFrame operations.`

)

}

try {

const code = import pandas as pd\nimport numpy as np\n${pythonCode}

finalResult = await pyodide.runPythonAsync(code) // executed in unsandboxed pyodide

} catch (error) {

throw new Error(Sorry, I'm unable to find answer for question: "${input}" using following code: "${pythonCode}")

}

}

```

An unauthenticated attacker with the ability to send prompts to a chatflow using the CSV Agent node may use prompt injection to cause the LLM to respond with a malicious Python script. An authenticated attacker may instead configure a chatflow that points to an attacker-controlled server, which responds to LLM requests with an attacker-controlled Python payload, bypassing the LLM entirely.

Eight bypass variants were demonstrated against the validator:

| Variant | Technique | Bypasses |

|---------|-----------|----------|

| 0 | @exec decorator with string-concatenated __import__ | /\bexec\s*\(/, /\b__import__\s*\(/ |

| 1 | eval aliased to a variable, payload chr()-encoded | /\beval\s*\(/, /\bimport\b/ |

| 2 | df.query() with chr()-encoded @__builtins__.__import__ | /\b__builtins__\b/, /\b__import__\s*\(/ |

| 3 | MRO traversal + __getattribute__ + __subclasses__ -> BuiltinImporter.load_module | /\b__class__\b/, /\b__subclasses__\s*\(/, /\b__mro__\b/ |

| 4 | Generator frame inspection via gi_frame.f_globals['__loader__'] | /\b__loader__\b/, /\b__globals__\b/ |

| 5 | Exception traceback frame walk to f_builtins['__import__'] | /\b__globals__\b/, `/\b__import

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality high, integrity high, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: High — the attacker first has to win a race, learn a secret or otherwise prepare the target.
  • Attack requirements: Present — the target has to be in a particular state for the attack to work.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: High — total loss, or loss the attacker controls.

Weakness class

CVE-2026-70477 is classified as CWE-94: Code Injection. Input is incorporated into code that the runtime evaluates, so an attacker can have their own code executed.

Affected software

CVE-2026-70477 is recorded against 3 packages.

  • flowise
  • flowise-components
  • unknown

Timeline and source

Published on 4 August 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)

Other advisories for this package

flowise has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-94: Code Injection) in other software:

Details

Severity CRITICAL
CVSS Score 9.5
CVSS Vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
CWE CWE-94
Public Exploit ✅ No
Source NVD
Published 2026-08-04
Updated 2026-08-20
Modified 2026-08-04
Fix URL N/A

Affected Packages

Software From version Fixed in
flowise
flowise-components
unknown

Similar Threats

Exploit Protection

Are you running flowise?

CVE-2026-70477 carries CVSS 9.5 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2026-70477 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026