Flowise allows authenticated users to run system commands as root

CriticalSE Fix-First Score 51/100CVE-2026-69254SE-AIV-01591Remote code executionAI apps and chat interfacesMade public 4 Aug 2026

Download as PDF

What this means

An attacker with a Flowise login can run any system command on the server with root privileges. This means they can steal all data, install malware, take over the server, or shut it down. Any data the server can access is at risk.

SecurityElites Manager Brief: the decision in one minute

Flowise has a critical flaw that lets logged-in users run system commands as root. Any Flowise instance must be upgraded immediately. If you have Flowise, assume it was compromised until you upgrade and check logs.

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 or DevOps team that runs Flowise.
Likely effortEstimate 30 minutes per Flowise instance: upgrade the npm packages and restart the service. Longer if you have many instances or need to check logs for past attacks.

Questions to ask your team or supplier

  • Do we know which servers run Flowise and which users have access to them? Can we list them all by end of day?
  • Have we checked Flowise logs since this vulnerability was discovered for any unusual custom function calls or command execution?
  • Who is responsible for upgrading Flowise on each server, and can they confirm all instances are at version 3.1.3 or later within 24 hours?

Message you can forward to the owning team

Security notice: Flowise allows authenticated users to run system commands as root (CVE-2026-69254)

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-69254-flowise-allows-authenticated-users-to-run-system-commands-as/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01591

What is at stake in your AI setup

  • API keys and credentials for external AI providers (OpenAI, Anthropic, etc.) — an attacker can steal these and use them to run expensive queries or access your models
  • Flowise workflows and custom functions — attacker can read, modify, or delete them to redirect data or shut down AI features
  • Data flowing through Flowise (chat history, documents, training data) — an attacker can copy it all
  • Compute and billing — attacker can run expensive model calls or tasks on your account

Map where your company uses AI

Who is exposed

  • Teams running Flowise in production with remote access or multiple users
  • Flowise instances handling sensitive data or connected to production systems
  • Setups where Flowise users are not fully trusted
  • Any version of flowise or flowise-components before 3.1.3

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 neededAn ordinary user account
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: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

If you cannot upgrade today

  • Until you can upgrade, restrict network access to Flowise to only trusted users and networks
  • Disable or remove all custom function features if they are not in active use
  • Run Flowise as a non-root user instead of root to limit damage from command execution (note: this does not close the vulnerability, only reduces impact)

Signs it may already have been used against you

  • Look for unusual child processes spawned by the Flowise Node.js process, especially shell commands, curl, wget, or connections to external systems
  • Check Flowise API logs for executeCustomFunction or node-custom-functions calls with nodeVMOptions in the request body
  • Search system audit logs (auditd on Linux) for unexpected process execution by the Flowise user or root
  • Review file access logs for unexpected reads or writes to system files, credentials, or sensitive application data

SecurityElites Fix Guide: step by step

  1. Find where Flowise is installedCheck all servers and containers where your team runs Flowise. Look for package.json files that list flowise or flowise-components as a dependency. Record the full path and current version of each installation.
  2. Check the current versionIn each Flowise directory, run `npm list flowise flowise-components` to see which version is installed. Write down each version number.
  3. Back up your dataExport or snapshot all Flowise workflows, credentials, and data before making changes. This ensures you can recover if the upgrade fails.
  4. Upgrade to the fixed versionIn each Flowise directory, run `npm install flowise@3.1.3` and `npm install flowise-components@3.1.3`. Then run `npm install` to update all dependencies.
  5. Restart FlowiseStop the running Flowise service and start it again. For Docker, restart the container. For systemd, run `systemctl restart flowise` (or your service name).
  6. Confirm the fix is in placeAfter restart, run `npm list flowise flowise-components` again and verify both show version 3.1.3 or later. Check that Flowise starts without errors in the logs.
  7. Check logs for past attacksLook at Flowise logs and system logs for any signs of unexpected command execution between when this vulnerability was first present and now.
  8. Review access and credentialsChange all passwords for users who access Flowise, and audit which users have login access. If any unauthorized logins appear in logs, assume an attacker accessed the server and investigate data theft.

How to confirm it is fixed: Run `npm list flowise flowise-components` and confirm both packages show version 3.1.3 or later; also verify Flowise starts cleanly after restart and processes incoming requests.

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 version of Flowise packagesfor this issue

npm list flowise flowise-components --depth=0

Verify upgraded version after restartfor this issue

npm list flowise flowise-components --depth=0 | grep -E '(flowise|flowise-components)'

Run the service in a locked-down containergeneral hardening

docker run --read-only --cap-drop ALL \
  --security-opt no-new-privileges --user 1000:1000 \
  -p 127.0.0.1:8080:8080 YOUR_IMAGE

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

An attacker with Flowise login access is able to run system commands. How did they do it, and which code change fixed it?A good answer: They passed a nodeVMOptions parameter that overrode the sandbox rules via the spread operator, re-enabling the child_process module. Version 3.1.3 and later no longer allow caller-supplied options to override sandbox defaults.
What is the minimum privilege level an attacker needs to exploit this vulnerability?A good answer: They need a valid Flowise login account with the ability to create or edit custom functions or execute the executeCustomFunction API endpoint.
If we find evidence of this vulnerability being exploited, what should we do first?A good answer: Immediately isolate the affected Flowise server from the network, preserve logs and system state for forensics, assume all credentials and data on that server are compromised, and begin an incident response investigation.
What are the top three things we should check in logs to see if this was exploited?A good answer: Look for executeCustomFunction calls with nodeVMOptions in request bodies, unexpected child processes spawned by Flowise, and unusual file or network access from the Flowise process.

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 allows authenticated users to run system commands as root (CVE-2026-69254)

**Severity:** Critical  |  **SE Fix-First Score:** 51/100  |  **Fix window:** Within 7 days
**Record:** SE-AIV-01591 https://securityelites.com/ai-vulnerabilities/cve-2026-69254-flowise-allows-authenticated-users-to-run-system-commands-as/

### Why this matters
An attacker with a Flowise login can run any system command on the server with root privileges. This means they can steal all data, install malware, take over the server, or shut it down. Any data the server can access is at risk.

### What to do
1. Find where Flowise is installed
2. Check the current version
3. Back up your data
4. Upgrade to the fixed version
5. Restart Flowise
6. Confirm the fix is in place
7. Check logs for past attacks
8. Review access and credentials

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-69254-flowise-allows-authenticated-users-to-run-system-commands-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 show version 3.1.3 or later; also verify Flowise starts cleanly after restart and processes incoming requests.
- [ ] 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

### Summary A sandbox escape vulnerability in `executeJavaScriptCode()` allows any authenticated user to execute arbitrary system commands as root on the Flowise server. The function accepts caller-provided `nodeVMOptions` that override the default sandbox security settings via JavaScript's spread operator, allowing an attacker to re-enable blocked modules like `child_process` and `fs`.### Details The vulnerability is in `packages/components/src/utils.ts` at line 1755:```typescript const finalNodeVMOptions = { ...defaultNodeVMOptions, ...nodeVMOptions }The executeJavaScriptCode() function (line 1569) creates a NodeVM sandbox with secure defaults that restrict which Node.js built-in modules can be required:async (code, sandbox, options = {}) => { const { nodeVMOptions = {} } = options; // ... const defaultNodeVMOptions = { require: { builtin: builtinDeps, // restricted allowlist — blocks child_process, fs, os, etc. mock: secureWrappers }, eval: false, wasm: false } const finalNodeVMOptions = { ...defaultNodeVMOptions, ...nodeVMOptions } // ← VULN: caller overrides security settings const vm = new NodeVM(finalNodeVMOptions) } ``` The spread operator allows any caller to override require.builtin with ["*"], which permits all Node.js built-in modules including child_process.**Taint 01: Route Registration** `packages/server/src/routes/node-custom-functions/index.ts` (line 8) **Taint 02: Controller** `executeCustomFunction()` passes `req.body` to service — `packages/server/src/controllers/nodes/index.ts` (line 90) **Taint 03: Service** `executeCustomNodeFunction()` loads the `customFunction` node and calls `init()` with user-provided `javascriptFunction` — `packages/server/src/utils/executeCustomNodeFunction.ts` (line 49) **Taint 04: Sandbox Entry** Code runs inside NodeVM via `executeJavaScriptCode()` — `packages/components/src/utils.ts` (line 1760)

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-69254

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.