Vulnerability record · CVE-2025-59528 · published 22 September 2025
CVE-2025-59528: Flowise CustomMCP node code injection enables remote code execution
Flowiseai · Flowise
Flowise 3.0.5 passes user-supplied mcpServerConfig input directly into the JavaScript Function() constructor inside convertToValidJSONString, with no validation. Because the evaluated code runs with full Node.js privileges, an attacker can reach child_process and fs and execute arbitrary commands on the host. The flaw is fixed in 3.0.6.
Description
Flowise is a drag & drop user interface to build a customized large language model flow. In version 3.0.5, Flowise is vulnerable to remote code execution. The CustomMCP node allows users to input configuration settings for connecting to an external MCP server. This node parses the user-provided mcpServerConfig string to build the MCP server configuration. However, during this process, it executes JavaScript code without any security validation. Specifically, inside the convertToValidJSONString function, user input is directly passed to the Function() constructor, which evaluates and executes the input as JavaScript code. Since this runs with full Node.js runtime privileges, it can access dangerous modules such as child_process and fs. This issue has been patched in version 3.0.6.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Automated analysis
critical priorityUnauthenticated network-reachable remote code execution with a CVSS score of 10, high EPSS and public exploit material makes this an urgent patch.
What it is
Flowise 3.0.5 passes user-supplied mcpServerConfig input directly into the JavaScript Function() constructor inside convertToValidJSONString, with no validation. Because the evaluated code runs with full Node.js privileges, an attacker can reach child_process and fs and execute arbitrary commands on the host. The flaw is fixed in 3.0.6.
Impact
An attacker gains arbitrary code execution on the Flowise server with the privileges of the Node.js process, allowing command execution, file read/write and further host compromise.
Attack surface
The CVSS vector is network-reachable with no privileges and no user interaction (AV:N/AC:L/PR:N/UI:N), so the CustomMCP node configuration path is exposed to unauthenticated callers. The description does not state whether a deployed flow or specific route must be reachable, so that detail is not confirmed.
Exploitation
Not listed in CISA KEV, but EPSS is 0.86218 (99.7th percentile) and the vendor advisory is tagged Exploit, indicating public exploit material exists. No ransomware usage is documented.
What to do
- Upgrade Flowise to 3.0.6 or later, which patches the CustomMCP code injection.
- If immediate upgrade is not possible, restrict network access to the Flowise instance and its node configuration endpoints to trusted users only.
- Disable or remove the CustomMCP node until the patch is applied.
- Run Flowise under a low-privilege account with no access to sensitive files or credentials, and isolate it from production networks.
- Audit existing flows for untrusted mcpServerConfig values and remove any that were not authored by trusted operators.
Detection
- Monitor Flowise process activity for unexpected child_process spawns or shell commands originating from the Node.js runtime.
- Alert on outbound network connections from the Flowise host to unknown MCP or external servers.
- Review Flowise logs and flow definitions for CustomMCP nodes containing suspicious JavaScript in mcpServerConfig.
- Watch for file system writes or reads by the Flowise process in paths outside its normal working directories.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2025-59528 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2025-59528), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.