Exploit database

Vulnerability

CVE-2025-59528

Flowise has Remote Code Execution vulnerability

Vulnerability details

Score
10.0
Severity
critical

CVSS 3.1 · GitHub_M

Vector string

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

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.

CVE Program

Exploit source choices

11 sources
Flowise JS Injection RCE
MSF-multi--http--flowise_js_rceMetasploitLinux,Unix,Windows / remote

This module exploits a remote code execution vulnerability in Flowise versions >= 2.2.7-patch.1 and < 3.0.6. The vulnerability exists in the customMCP endpoint (/api/v1/node-load-method/customMCP) located in packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts, which allows users to execute arbitrary commands via JavaScript code injection in the mcpServerConfig parameter using the convertToValidJSONString function that uses Function('return ' + inputString)(). For versions < 3.0.1, the exploit can work unauthenticated if FLOWISE_USERNAME and FLOWISE_PASSWORD environment variables are not configured. For versions >= 3.0.1, authentication via FLOWISE_EMAIL and FLOWISE_PASSWORD is required due to JWT token verification.

2025-09-13flowise_js_rce.rb
arensballiu/flowise-rce-cve-2025-59528
GH-472a8fecc1ac3095f68120046083edd8GitHubUnofficial GitHub source

Authenticated Remote Code Execution (RCE) exploit for Flowise AI versions ≤ 3.0.4. Leverages a vulnerability in the /api/v1/node-load-method/customMCP endpoint to execute arbitrary system commands via Node.js child_process.execSync(). Includes full PoC script and remediation steps.

2026-04-152 files · 1 stars
corey-farley/cve-2025-59528-flowise-rce
GH-947af6714105411b787ed2c0a59239c1GitHubUnofficial GitHub source

Authenticated RCE PoC for Flowise version <= 3.0.5 via CustomMCP Node (CVE-2025-59528)

2026-05-172 files · 1 stars
maradonam18/-cve-2025-59528-poc
GH-e659d1ef46248f848d326271dcd33587GitHubUnofficial GitHub source

A simple python script to exploit CVE-2025-59528, this an Authenticated RCE vulnerability in Flowise application, a popular AI tool. That is also used in HTB seasonal challenge. The issue is present in version <= 3.0.5, for more details: https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-3gcm-f6qx-ff7p

2026-04-153 files · 1 stars
nymiitechtips/cve-2025-59528
GH-499731a15ef9f4cf8eab50184f8126d3GitHubUnofficial GitHub source

Technical PoC for CVE-2025-59528 (Flowise < 3.0.5), demonstrating authenticated RCE through customMCP mcpServerConfig injection, with clear bilingual documentation and reproducible steps for authorized security testing.

2026-05-163 files · 1 stars
usifaraby/cve-2025-59528-poc
GH-24944c01cdfa67afd11aeeb4d1d8852aGitHubUnofficial GitHub source

CVE-2025-59528 - FlowiseAI CustomMCP Remote Code Execution

2026-04-132 files · 1 stars
vanhari/cve-2025-59528
GH-b3ce0bdc9e2e2e1b704275af02671e2bGitHubUnofficial GitHub source

CVE-2025-59528 Proof of Concept

2026-04-133 files · 1 stars
amoru-bek/cve-2025-59528-poc
GH-2c8f1659f6284b9a56b8588a3fc4ab05GitHubUnofficial GitHub source

amoru-bek/cve-2025-59528-poc source repository

2026-09-302 files · 0 stars