Flowise CSV Agent runs attacker code via crafted file upload
What this means
An attacker with permission to create chatflows can upload a malicious CSV file that runs arbitrary commands on the server when anyone uses the chatflow. This gives the attacker full control of the Flowise server, all its files, and the ability to run any program the server can run.
SecurityElites Manager Brief: the decision in one minute
Flowise CSV Agent does not safely check uploaded files before running them. An insider with the right permission, or someone who gains access, can run any command on the Flowise server. You must upgrade to version 3.1.3 immediately.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform or infrastructure team responsible for Flowise deployment and npm dependency management. |
| Likely effort | About 15 minutes: upgrade flowise and flowise-components to version 3.1.3, then restart the service. Longer if you have custom integrations that depend on these packages. |
Questions to ask your team or supplier
- Do we have a way to quickly list all public chatflows that use CSV Agent nodes, so we can audit them before and after the upgrade?
- Who in our workspace has permission to create or edit chatflows, and have we reviewed that access list recently?
- Do our logs go back far enough to detect whether this vulnerability was exploited before we apply the fix?
Message you can forward to the owning team
Security notice: Flowise CSV Agent runs attacker code via crafted file upload (CVE-2026-69264)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to flowise 3.1.3, flowise-components 3.1.3 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-69264-flowise-csv-agent-runs-attacker-code-via-crafted-file/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01598What is at stake in your AI setup
- Chatflow definitions and agent configurations: attackers can steal or modify all stored workflows and their logic.
- API keys and credentials stored in Flowise: attackers can access tokens for connected AI services and external APIs.
- Chat history and user data: messages, prompts, and conversation logs can be read or deleted.
- Compute resources: attackers can run expensive operations or redirect processing to mine cryptocurrency or run other workloads.
Who is exposed
- Teams running Flowise 3.1.2 or earlier with exposed prediction endpoints.
- Setups where workspace users can create or edit chatflows and CSV Agent nodes.
- Services that allow unauthenticated access to the POST /api/v1/prediction endpoint.
- Any system where Flowise runs with file system or OS command permissions.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| flowise npm | Every version before 3.1.3 | 3.1.3 or later |
| flowise-components npm | Every version before 3.1.3 | 3.1.3 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | An ordinary user account |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Kind of coding mistake
- CWE-94: code can be injected
- CWE-95: code can be injected through evaluation
Where it sits in the standards
OWASP Top 10 for LLM Applications 2025: LLM03 Supply Chain (unsafe model and data files)
If you cannot upgrade today
- Immediately disable or remove all CSV Agent nodes from chatflows that are exposed via public prediction endpoints.
- Restrict access to `/api/v1/prediction/` endpoints to authenticated users only, if your business allows.
- Audit all workspace users and revoke `chatflows:create` permission from any user who does not need it.
Signs it may already have been used against you
- Review logs for POST requests to `/api/v1/prediction/` with file uploads or base64 data in unusual formats.
- Search for Python error messages or exceptions in Flowise logs that mention `base64`, `eval`, or `import` between the time a CSV Agent was created and when the attack may have occurred.
- Check filesystem access logs for unexpected reads or writes to system files (e.g., `/etc/passwd`, configuration files) or unusual child process spawning.
- Look for chatflows that contain CSV Agent nodes with very long or unusual `csvFile` values containing base64 or special characters like quotes or backslashes.
Log searches to start from
Unusual POST requests to prediction endpoints with large payloads or base64 patternsSplunk
index=main endpoint=/api/v1/prediction/* method=POST | stats avg(payload_size) by endpoint | where avg(payload_size) > 10000Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find where Flowise and flowise-components are installedCheck your package.json file or run `npm list flowise flowise-components` in your Flowise directory. Note the current versions installed.
- Check if you are running a vulnerable versionIf flowise or flowise-components is at version 3.1.2 or earlier, you are at risk. Version 3.1.3 and later are safe.
- Back up your Flowise data and configurationExport or copy your chatflows, credentials, and any custom settings before you upgrade. This protects you if the upgrade needs to be rolled back.
- Upgrade flowise and flowise-components to 3.1.3Use your package manager to upgrade: for npm, run `npm install flowise@3.1.3 flowise-components@3.1.3` in your Flowise root directory.
- Restart the Flowise serviceStop and start Flowise so the new code runs. If you use a process manager or container, restart it normally.
- Verify the upgrade was successfulRun `npm list flowise flowise-components` again and confirm both show version 3.1.3 or later.
- Review access logs for signs of previous attacksCheck logs from before the upgrade for unusual POST requests to `/api/v1/prediction/` endpoints or errors related to Python execution. Look for patterns that do not match normal chatflow usage.
- Audit CSV Agent nodes in all chatflowsList all chatflows that use CSV Agent nodes, particularly any that are exposed publicly. Check when they were created or modified and by whom, to see if any were added by untrusted users.
How to confirm it is fixed: Run `npm list flowise flowise-components` and confirm both packages show version 3.1.3 or later; also confirm the service has been restarted so the new code is running.
SecurityElites Quick Fixes: copy and paste
Upgrade flowise with npmupgrade
npm install flowise@3.1.3
npm ls flowiseUpgrade flowise-components with npmupgrade
npm install flowise-components@3.1.3
npm ls flowise-componentsCheck installed versions of flowise and flowise-componentsfor this issue
npm list flowise flowise-componentsLoad PyTorch weights without running codegeneral hardening
import torch
state = torch.load("model.pt", weights_only=True)Load safetensors weightsgeneral hardening
from safetensors.torch import load_file
state = load_file("model.safetensors")Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-69264) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - flowise (npm): must be 3.1.3 or later
- flowise-components (npm): must be 3.1.3 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## Flowise CSV Agent runs attacker code via crafted file upload (CVE-2026-69264)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-01598 https://securityelites.com/ai-vulnerabilities/cve-2026-69264-flowise-csv-agent-runs-attacker-code-via-crafted-file/
### Why this matters
An attacker with permission to create chatflows can upload a malicious CSV file that runs arbitrary commands on the server when anyone uses the chatflow. This gives the attacker full control of the Flowise server, all its files, and the ability to run any program the server can run.
### What to do
1. Find where Flowise and flowise-components are installed
2. Check if you are running a vulnerable version
3. Back up your Flowise data and configuration
4. Upgrade flowise and flowise-components to 3.1.3
5. Restart the Flowise service
6. Verify the upgrade was successful
7. Review access logs for signs of previous attacks
8. Audit CSV Agent nodes in all chatflows
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-69264-flowise-csv-agent-runs-attacker-code-via-crafted-file/
### Done when
- [ ] flowise is at 3.1.3 or later everywhere it is installed
- [ ] flowise-components is at 3.1.3 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `npm list flowise flowise-components` and confirm both packages show version 3.1.3 or later; also confirm the service has been restarted so the new code is running.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- Flowise CSV and Airtable agents allow data theft via prompt injection Critical · CVE-2026-73487
- Flowise can run commands and read files outside its sandbox Critical · CVE-2026-119978
- Flowise OAuth2 token endpoint open to anyone, leaks access tokens Critical · CVE-2026-70478
- Flowise CSV Agent can run Python code sent by attackers Critical · CVE-2026-70477
- Flowise allows authenticated users to change other organizations' billing High · CVE-2026-70476
- Flowise allows any authenticated user to change execution records without permission check High · CVE-2026-70475
The same kind of mistake in other AI tools
- PocketSphinx acoustic and language model loaders accept malicious files High · CVE-2026-142205
- PyTorch Lightning loads untrusted checkpoint files without safety checks High · CVE-2026-142196
- Listdom WordPress plugin allows anyone to run code on the server Critical · CVE-2026-126756
- DLOmix can run attacker code when loading model files High · CVE-2026-141343
- HoloViz Lumen can run arbitrary Python code through YAML files High · CVE-2026-141342
Change history
- 4 Aug 2026: Made public
- 2 Dec 2026: Published
Official record
### Summary Flowise's `CSVAgent` interpolates an attacker-controlled segment of the `csvFile` data URI directly into a Python source-code template that is then executed by Pyodide. Because Pyodide is loaded with the default `js` bridge to `globalThis` (which on Node.js exposes `eval` and dynamic `import()`), the attacker can break out of the Python string literal, hand a JS string to `js.eval`, dynamically import any Node built-in module (`fs`, `child_process`, …), and execute arbitrary file I/O or OS commands as the Flowise process. The two validator paths around this code (`validatePythonCodeForDataFrame` and `validateCustomReadCSVFunction`) are never applied to the bootstrap template.A workspace user with `chatflows:create` (or any `agentflows`/`chatflows` update permission) plants a CSV Agent node with a crafted `csvFile`. Once the chatflow is exposed via the (whitelisted, public) `POST /api/v1/prediction/:id` endpoint, *any unauthenticated* request triggers the host RCE.### Details**Vulnerable file:** `packages/components/nodes/agents/CSVAgent/CSVAgent.ts`The `run()` method extracts the file segment from the data URI by splitting on `,` and using two `pop()` calls (lines 127–138):```ts } else { if (csvFileBase64.startsWith('[') && csvFileBase64.endsWith(']')) { files = JSON.parse(csvFileBase64) } else { files = [csvFileBase64] }for (const file of files) { if (!file) continue const splitDataURI = file.split(',') splitDataURI.pop() // discards trailing filename segment base64String += splitDataURI.pop() ?? '' // captures the segment we attack } } ```The captured `base64String` is then **interpolated verbatim** into a Python source string at lines 156–171:```ts const code = `import pandas as pd import base64 from io import StringIO import jsonbase64_string = "${base64String}" // ← line 161: interpolation sinkdecoded_data = base64.b64decode(base64_string) csv_data = StringIO(decoded_data.decode('utf-8'))df = pd.${customReadCSVFunc} my_dict = df.dtypes.astype(str).to_dict() print(my_dict) json.dumps(my_dict)` dataframeColDict = await pyodide.runPythonAsync(code) // ← line 171: sink ```**Validator gaps:**- `validateCustomReadCSVFunction(customReadCSVFunc)` runs on line 147, but this only validates the `customReadCSV` field, not `base64String`. - `validatePythonCodeForDataFrame(pythonCode)` runs on line 198, but only against the *LLM-emitted* Python that runs later — never against this bootstrap template. - No content check (`^[A-Za-z0-9+/=]*$`) is applied to `base64String` before interpolation.**Pyodide configuration** (`packages/components/nodes/agents/CSVAgent/core.ts`, lines 7–16):```ts 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 } ```Pyodide is loaded with default options. On Node.js, the default `js` module inside Pyodide bridges to `globalThis`, exposing the JS `eval` function and top-level dynamic `import()`. From injected Python, the attacker runs:```python import js await js.eval( "(async () => {" " const fs = await import('fs');" " fs.writeFileSync('proof.txt', 'pwned');" "})()" ) ```…which executes in the host Node.js process, **not** inside Pyodide's WASM sandbox. Substituting `await import('child_process')` for `await import('fs')` yields arbitrary OS-command execution via `cp.execSync(...)` with the same primitive.> **Node-version note.** The original PoC for this issue used > `js.process.mainModule.require("child_process")`, which is a one-liner but > only works on Node ≤ 13 because `proce
Weakness type: CWE-94, CWE-95
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-69264For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.