← Vulnerability feed

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.

10.0 CVSS 3.1 Critical EPSS 86% · top 0.3% CWE-94 · Code injection
10.0CVSS 3.1 base score
86%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
8References, 1 tagged exploit
17 Jun 2026Last modified by NVD

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

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

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.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-71338Flowiseai flowise vulnerabilityFlowise through 2.2.7 fails to sanitize path segments in the document-store loader endpoint, allowing unauthenticated attackers to write files outsid…EPSS 1.2%9.9CVE-2026-40933Flowiseai flowise os command injection vulnerabilityFlowise is a drag & drop user interface to build a customized large language model flow. Prior to 3.1.0, due to unsafe serialization of stdio command…EPSS 1.3%9.9CVE-2025-61913Flowiseai flowise path traversal vulnerabilityFlowise is a drag & drop user interface to build a customized large language model flow. In versions prior to 3.0.8, WriteFileTool and ReadFileTool i…EPSS 13%9.8CVE-2026-52098Flowiseai flowise code injection vulnerabilityAn issue in Flowise 3.1.2 allows a remote attacker to execute arbitrary code via the /api/v1/prediction/<flowId> endpointEPSS 1.1%9.8CVE-2026-41267Flowiseai flowise insecure direct object reference vulnerabilityFlowise is a drag & drop user interface to build a customized large language model flow. Prior to 3.1.0, an improper mass assignment (JSON injection)…EPSS 0.48%9.8CVE-2026-41268Flowiseai flowise improper input validation vulnerabilityFlowise is a drag & drop user interface to build a customized large language model flow. Prior to 3.1.0, Flowise is vulnerable to a critical unauthen…EPSS 1.2%9.8CVE-2025-58434Flowise forgot-password endpoint leaks reset token, enabling account takeoverFlowise 3.0.5 and earlier returns a valid password reset tempToken and sensitive account details from the forgot-password endpoint without authentica…EPSS 50%analysed9.8CVE-2025-8943Flowise Custom MCPs feature allows unauthenticated OS command executionFlowise's Custom MCPs feature is meant to run OS commands such as npx to start local MCP servers, but the platform's authentication and authorization…EPSS 66%analysed

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.