CVE-2025-59528
10.0FlowiseAI · Flowise
Flowise version 3.0.5 is vulnerable to unauthenticated remote code execution via the CustomMCP node, which improperly validates user input before passing it to the JavaScript Function constructor.
Executive summary
Flowise version 3.0.5 contains a critical remote code execution vulnerability that allows unauthenticated attackers to execute arbitrary JavaScript with full system privileges.
Vulnerability
The vulnerability exists within the CustomMCP node, where the mcpServerConfig string is processed by the convertToValidJSONString function. This function insecurely passes user input directly into a JavaScript Function constructor, resulting in arbitrary code execution with the full privileges of the Node.js runtime.
Business impact
This vulnerability carries a CVSS score of 10.0, representing the highest level of severity. An unauthenticated attacker can achieve complete system compromise, leading to unauthorized data exfiltration, the installation of persistent backdoors, or the total destruction of the host environment. Given the nature of Flowise as a tool for managing large language model flows, successful exploitation could also result in the compromise of sensitive model data and integrated API credentials.
Remediation
Immediate Action: Update Flowise to version 3.0.6 or later immediately to apply the necessary input validation fixes.
Proactive Monitoring: Review system and application logs for unexpected process execution, particularly those involving child processes or unauthorized access to the filesystem.
Compensating Controls: Deploy a Web Application Firewall (WAF) with rules configured to detect and block suspicious JavaScript payloads in HTTP requests, though this should be considered a temporary measure pending a full update.
Exploitation status
Public Exploit Available: Yes, a public exploit is available via a Metasploit module and an ExploitDB entry.
Analyst recommendation
Due to the critical nature of this vulnerability and the availability of weaponized exploit code, organizations must prioritize patching Flowise to version 3.0.6. Failure to update immediately exposes the underlying infrastructure to complete takeover. If immediate patching is not feasible, the application should be isolated from public network access until the remediation is successfully deployed and verified.
More FlowiseAI CVEs all →
History
- Disclosed CVE record published
- Published in the daily brief critical section
- Published in the daily brief critical section
- Fix documented version 3.0.6 per OSV.dev
Sources
- https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-3gcm-f6qx-ff7p
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/C
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/C
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/C
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/controllers/nodes
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/routes/node-load-
- https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/services/nodes/in
- https://github.com/FlowiseAI/Flowise/releases/tag/flowise%403.0.6