Flowise MCP adapter allows authenticated users to run arbitrary commands

CriticalSE Fix-First Score 51/100CVE-2026-40933SE-AIV-01638Remote code executionAI agents and assistantsMade public 17 Apr 2026

Download as PDF

What this means

An attacker with login access to Flowise can run any command on the server where Flowise is running. This could lead to data theft, system compromise, installation of malware, or complete takeover of the server and any systems it connects to.

SecurityElites Manager Brief: the decision in one minute

Flowise has a critical flaw that lets logged-in users run commands on your server by adding a custom MCP tool. This can compromise your entire infrastructure. You must upgrade 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 managing Flowise deployments.
Likely effortAbout 15 minutes per installation: download the new version, upgrade the npm packages, and restart Flowise. No configuration changes needed. Longer if you run many Flowise instances or have complex deployment setups.

Questions to ask your team or supplier

  • Do we know which users have access to Flowise and when they last logged in? Have we reviewed the MCP configurations for anything unusual?
  • Are there logs showing unexpected command execution or file operations on our Flowise servers before we upgrade? Should we check with our security team?
  • Should we implement role-based access control to restrict who can add new MCP tools in Flowise after we upgrade?

Message you can forward to the owning team

Security notice: Flowise MCP adapter allows authenticated users to run arbitrary commands (CVE-2026-40933)

Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to flowise 3.1.0, flowise-components 3.1.0 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-40933-flowise-mcp-adapter-allows-authenticated-users-to-run-arbitrary/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01638

What is at stake in your AI setup

  • Prompts and chat history: An attacker can run commands to extract or modify prompts, previous conversations, and system instructions stored by Flowise.
  • Keys for AI providers: Commands can be used to steal API keys for OpenAI, Anthropic, or other AI services configured in Flowise.
  • Tools and systems an agent is connected to: Attackers can use the compromised Flowise server to pivot to other systems, services, or APIs that Flowise is configured to interact with.
  • Training or retrieval data: If Flowise is used with custom knowledge bases or retrieval systems, attackers can exfiltrate or delete training data and documents.

Map where your company uses AI

Who is exposed

  • Teams running Flowise in production with untrusted or shared user accounts.
  • Flowise instances accessible to multiple users or used in multi-tenant setups.
  • Servers where Flowise runs with elevated privileges or access to sensitive systems.
  • Flowise deployments without network isolation or additional access controls.

Upgrades you need

SoftwareAffected versionsMove to
flowise
npm
Every version before 3.1.03.1.0 or later
flowise-components
npm
Every version before 3.1.03.1.0 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:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Kind of coding mistake

  • CWE-78: operating system commands can be injected

If you cannot upgrade today

  • Until you can upgrade, restrict access to Flowise to only trusted administrators. Remove all user accounts except those absolutely required.
  • Disable or block the ability to add new Custom MCP tools in Flowise if the application allows this via configuration.
  • Run Flowise in a container or virtual machine with minimal privileges and restricted outbound network access to limit the damage if a command is executed.

Signs it may already have been used against you

  • Review authentication logs to identify all users who have logged into Flowise before the upgrade.
  • Check server process logs for unexpected command execution, especially commands with npx, touch, curl, wget, or similar utilities run around the time Flowise was running.
  • Search system audit logs (auditd on Linux) for unexpected file creation, process execution, or network connections originating from the Flowise process.
  • Look at Flowise canvas or flow configuration files for MCP stdio servers with suspicious commands, especially those containing flags like -c or unusual arguments.

Log searches to start from

Unexpected process execution from FlowiseSplunk

process_name=flowise OR parent_process=flowise | stats by process, process_path, command_line, user

MCP configuration changes and command executionElastic

source:flowise AND ("Custom MCP" OR "stdio" OR process.executable:*flowise*) | fields @timestamp, source, message, process.command_line

Written 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

  1. Find where Flowise is installedList all npm packages installed on your servers. Look for the flowise package or flowise-components package. Run npm list flowise or npm list flowise-components to check the current version on each system running Flowise.
  2. Back up your Flowise dataExport your Flowise configuration, flows, and any stored credentials before upgrading. Use the Flowise export feature or back up the data directory where Flowise stores its files.
  3. Upgrade flowise to version 3.1.0 or laterUpdate the flowise npm package to version 3.1.0 or later using your package manager. Run npm install flowise@3.1.0 or update your package.json and run npm install.
  4. Upgrade flowise-components to version 3.1.0 or laterUpdate the flowise-components npm package to version 3.1.0 or later. Run npm install flowise-components@3.1.0 or update your package.json and run npm install.
  5. Restart FlowiseStop the Flowise service and start it again. This applies the new code. Verify that Flowise comes back online and you can log in.
  6. Verify the upgrade workedCheck that the installed version is 3.1.0 or later by running npm list flowise and npm list flowise-components. Confirm both packages show version 3.1.0 or higher.
  7. Review MCP configurationsLog in to Flowise and check all existing Custom MCP configurations on the canvas page. Look for any MCP stdio servers that may have been added before the upgrade and verify they are legitimate.
  8. Check server logs for unauthorized activityReview server logs and system logs from before the upgrade to see if any unauthorized commands were run. Look for unexpected process execution or file creation on the server.

How to confirm it is fixed: Confirm that both flowise and flowise-components npm packages are installed at version 3.1.0 or later by running npm list flowise flowise-components and checking the output shows version 3.1.0 or higher for both packages.

SecurityElites Quick Fixes: copy and paste

Upgrade flowise with npmupgrade

npm install flowise@3.1.0
npm ls flowise

Upgrade flowise-components with npmupgrade

npm install flowise-components@3.1.0
npm ls flowise-components

Check installed Flowise versionfor this issue

npm list 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-40933) 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.0 or later
   - flowise-components (npm): must be 3.1.0 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.

What is the minimum version of Flowise and flowise-components that fixes this vulnerability?A good answer: Both flowise and flowise-components must be upgraded to version 3.1.0 or later.
Who is at risk from this vulnerability and what can they do?A good answer: Any user with a login account to Flowise can exploit this by adding a custom MCP with a malicious command, so it affects all Flowise instances with untrusted or shared user accounts.
What would an attacker be able to do if they exploited this?A good answer: An attacker could run any command on the server where Flowise runs, allowing them to steal data, access connected systems, install malware, or take over the entire server.
What should we check after upgrading to confirm the vulnerability is closed?A good answer: Verify that both flowise and flowise-components are at version 3.1.0 or higher, and review the MCP configurations to ensure no malicious commands were added before the upgrade.

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 MCP adapter allows authenticated users to run arbitrary commands (CVE-2026-40933)

**Severity:** Critical  |  **SE Fix-First Score:** 51/100  |  **Fix window:** Within 7 days
**Record:** SE-AIV-01638 https://securityelites.com/ai-vulnerabilities/cve-2026-40933-flowise-mcp-adapter-allows-authenticated-users-to-run-arbitrary/

### Why this matters
An attacker with login access to Flowise can run any command on the server where Flowise is running. This could lead to data theft, system compromise, installation of malware, or complete takeover of the server and any systems it connects to.

### What to do
1. Find where Flowise is installed
2. Back up your Flowise data
3. Upgrade flowise to version 3.1.0 or later
4. Upgrade flowise-components to version 3.1.0 or later
5. Restart Flowise
6. Verify the upgrade worked
7. Review MCP configurations
8. Check server logs for unauthorized activity

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-40933-flowise-mcp-adapter-allows-authenticated-users-to-run-arbitrary/

### Done when
- [ ] flowise is at 3.1.0 or later everywhere it is installed
- [ ] flowise-components is at 3.1.0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that both flowise and flowise-components npm packages are installed at version 3.1.0 or later by running npm list flowise flowise-components and checking the output shows version 3.1.0 or higher for both packages.
- [ ] 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

  • 16 Apr 2026: Made public
  • 2 Dec 2026: Published

Official record

### Summary Due to unsafe serialization of stdio commands in the MCP adapter, an authenticated attacker can add an MCP stdio server with an arbitrary command, achieving command execution.### Details The vulnerability lies in a bug in the input sanitization from the “Custom MCP” configuration in http://localhost:3000/canvas - where any user can add a new MCP, when doing so - adding a new MCP using stdio, the user can add any command, even though your code have input sanitization checks such as validateCommandInjection and validateArgsForLocalFileAccess, and a list of predefined specific safe commands - these commands, for example "npx" can be combined with code execution arguments ("-c touch /tmp/pwn") that enable direct code execution on the underlying OS.https://github.com/FlowiseAI/Flowise/blob/d848baeb6bd9737a1e7fc912349c45fbdcc7bb38/packages/components/nodes/tools/MCP/core.ts#L223https://github.com/FlowiseAI/Flowise/blob/d848baeb6bd9737a1e7fc912349c45fbdcc7bb38/packages/components/nodes/tools/MCP/core.ts#L177https://github.com/FlowiseAI/Flowise/blob/d848baeb6bd9737a1e7fc912349c45fbdcc7bb38/packages/components/nodes/tools/MCP/core.ts#L269### PoC Create a new Custom MCP and add an "npx -c" command. ``` { "command": "npx", "args": [ "-c", "touch /tmp/pwn" ] } ``` <img width="358" height="628" alt="Screenshot 2026-01-12 at 18 32 37" src="https://github.com/user-attachments/assets/d95c1ae2-23a7-4afe-b586-722003baf50e" />### Impact This is an authenticated arbitrary command execution due to unsanitized input, even though the input is sanitized, more protections should be added in order to close ways for attackers to execute arbitrary commands.

Weakness type: CWE-78

Use this record in your own tools

Get this record as JSON

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

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.