CVE-2025-59528 in flowiseai flowise

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

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.

Affected software: flowiseai flowise

Scores

What LogPulse has for it

How to mitigate it

Update Flowise to 3.0.6 or later

Patch or upgrade. Flowise 3.0.5 runs the mcpServerConfig of the CustomMCP node as JavaScript, so anyone who reaches the API runs code on the server. 3.0.6 parses it safely.

Applies to: Flowise 3.0.5 and earlier with the CustomMCP node.

  1. Check the Flowise version (npx flowise --version, the container tag, or the UI About page).
  2. Update Flowise to 3.0.6 or later and restart it.
  3. Turn on Flowise authentication (FLOWISE_USERNAME/FLOWISE_PASSWORD or the user management of 3.x) and keep the API off the internet.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse