This module exploits a remote code execution vulnerability in Flowise versions >= 2.2.7-patch.1 and < 3.0.1. The vulnerability exists in the customMCP endpoint (/api/v1/node-load-method/customMCP) located in packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts and packages/components/nodes/tools/MCP/core.ts, which allows users to execute arbitrary commands via StdioClientTransport by using the 'x-request-from: internal' header. When FLOWISE_USERNAME and FLOWISE_PASSWORD are not configured, the exploit works unauthenticated. If Basic Auth is enabled, the FLOWISE_USERNAME and FLOWISE_PASSWORD options must be set to provide credentials.
Exploit database
Vulnerability
CVE-2025-8943
Unsupervised OS command execution leads to remote code execution by unauthenticated network attackers
Vulnerability details
- Score
- 9.8
- Severity
- critical
CVSS 3.1 · JFROG
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDescription
The Custom MCPs feature is designed to execute OS commands, for instance, using tools like `npx` to spin up local MCP Servers. However, Flowise's inherent authentication and authorization model is minimal and lacks role-based access controls (RBAC). Furthermore, in Flowise versions before 3.0.1 the default installation operates without authentication unless explicitly configured. This combination allows unauthenticated network attackers to execute unsandboxed OS commands.
CVE ProgramExploit source choices
1 sourceFlowise Custom MCP Remote Code Execution
2025-08-14flowise_custommcp_rce.rb