Home

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.

PUBLISHED Reserved 2025-09-17 | Published 2025-09-22 | Updated 2025-09-22 | Assigner GitHub_M




CRITICAL: 10.0CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Problem types

CWE-94: Improper Control of Generation of Code ('Code Injection')

Product status

= 3.0.5
affected

References

github.com/...lowise/security/advisories/GHSA-3gcm-f6qx-ff7p

github.com/...ponents/nodes/tools/MCP/CustomMCP/CustomMCP.ts

github.com/...ponents/nodes/tools/MCP/CustomMCP/CustomMCP.ts

github.com/...ponents/nodes/tools/MCP/CustomMCP/CustomMCP.ts

github.com/...packages/server/src/controllers/nodes/index.ts

github.com/...s/server/src/routes/node-load-methods/index.ts

github.com/...d0/packages/server/src/services/nodes/index.ts

github.com/FlowiseAI/Flowise/releases/tag/flowise@3.0.6

cve.org (CVE-2025-59528)

nvd.nist.gov (CVE-2025-59528)

Download JSON