Flowise can be made to run any command on the server
What this means
An attacker can run any code on the server where Flowise runs, including reading files, deleting data, installing malware, or taking over the whole system. If Flowise connects to other systems or stores secrets, those are at risk too.
SecurityElites Manager Brief: the decision in one minute
Flowise versions up to 3.0.5 let an attacker run code on your server through a configuration setting. This needs an immediate upgrade to 3.0.6 or later. If you have not updated yet, do it today.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Infrastructure or platform team managing Flowise deployments. |
| Likely effort | About 15 minutes: update the npm package to version 3.0.6 or later, restart Flowise, and check that it starts cleanly. |
Questions to ask your team or supplier
- Do we have Flowise 3.0.5 or earlier running anywhere in production or development right now, and have we tested the upgrade in a non-production environment first?
- Is the `/api/v1/node-load-method/customMCP` endpoint restricted by authentication, network firewall, or IP allowlist, and can we see logs of all requests to it in the past six months?
- Who has access to create or edit Flowise workflows that use the CustomMCP node, and have we checked what credentials or keys are exposed through those workflows?
Message you can forward to the owning team
Security notice: Flowise can be made to run any command on the server (CVE-2025-59528)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to flowise 3.0.6 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2025-59528-flowise-can-be-made-to-run-any-command-on/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01592What is at stake in your AI setup
- Keys for external AI providers: attackers could use them to run expensive queries or access your account
- Prompts and workflow configurations: attackers could modify them to change behavior or leak data
- Chat history and conversation records: attackers could read all stored conversations with users
- Tools and systems the agent is connected to: attackers could use Flowise as a bridge to access databases, APIs, or other services it can reach
Who is exposed
- Teams running Flowise 3.0.5 or earlier with network access to the `/api/v1/node-load-method/customMCP` endpoint
- Setups where Flowise is public-facing or accessible from untrusted networks
- Instances connected to production databases, file systems, or external APIs and credentials
- Any Flowise deployment without authentication or network controls on the API endpoint
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| flowise npm | 3.0.5 up to, but not including, 3.0.6 | 3.0.6 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | Yes, according to CISA |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Kind of coding mistake
- CWE-94: code can be injected
If you cannot upgrade today
- Until you can upgrade, disable or remove the CustomMCP node from all workflows if it is not in use.
- If the CustomMCP node is in use, restrict network access to the `/api/v1/node-load-method/customMCP` endpoint to only trusted internal IP addresses or VPN users. Use a firewall, reverse proxy, or network ACL.
- Require authentication on all Flowise API endpoints and monitor access logs closely for any requests to the CustomMCP endpoint.
Signs it may already have been used against you
- API access logs for requests to `/api/v1/node-load-method/customMCP` endpoint, especially from unexpected IP addresses or at unusual times
- Look for `mcpServerConfig` parameter values that contain JavaScript code, function calls, or syntax like `Function()`, `require()`, or `child_process`
- Server process logs for unexpected child processes spawned by the Flowise Node.js process, or new network connections initiated from the Flowise server
- File system audit logs showing new files created, modified, or deleted in the Flowise working directory or parent system folders during the time window of suspicious API calls
SecurityElites Fix Guide: step by step
- Find where Flowise is installedLog in to the server or container where Flowise runs. Check the package.json file or run `npm list flowise` to see the installed version.
- Check the current versionNote the installed version number. If it is 3.0.5 or lower, the system is at risk. If it is 3.0.6 or higher, it may already be patched.
- Back up your configurationExport or save any Flowise workflows, settings, and credentials before updating. This is a precaution in case the upgrade needs to be rolled back.
- Upgrade to version 3.0.6 or laterRun `npm install flowise@3.0.6` or later in the Flowise directory. Use the exact version number 3.0.6 or any higher stable release.
- Restart FlowiseStop the Flowise service or process, then start it again. Check that it starts without errors and all endpoints respond normally.
- Verify the fix is in placeRun `npm list flowise` again and confirm the version is now 3.0.6 or higher. The CustomMCP node should still work but should no longer execute arbitrary code from user input.
- Review access logs for signs of exploitationCheck server logs for any requests to `/api/v1/node-load-method/customMCP` from before the upgrade, especially with unusual payloads or malformed JSON in the mcpServerConfig parameter.
- If exploitation is suspected, investigate affected systemsIf logs show suspicious activity, check for unexpected files, processes, or network connections on the server from that time. Review credentials and keys stored on or accessed by that server.
How to confirm it is fixed: Run `npm list flowise` and confirm the version is 3.0.6 or higher, then restart Flowise and confirm all endpoints respond normally without errors.
SecurityElites Quick Fixes: copy and paste
Upgrade flowise with npmupgrade
npm install flowise@3.0.6
npm ls flowiseCheck installed Flowise versionfor this issue
npm list flowiseRun the service in a locked-down containergeneral hardening
docker run --read-only --cap-drop ALL \
--security-opt no-new-privileges --user 1000:1000 \
-p 127.0.0.1:8080:8080 YOUR_IMAGETest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2025-59528) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - flowise (npm): must be 3.0.6 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## Flowise can be made to run any command on the server (CVE-2025-59528)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-01592 https://securityelites.com/ai-vulnerabilities/cve-2025-59528-flowise-can-be-made-to-run-any-command-on/
### Why this matters
An attacker can run any code on the server where Flowise runs, including reading files, deleting data, installing malware, or taking over the whole system. If Flowise connects to other systems or stores secrets, those are at risk too.
### What to do
1. Find where Flowise is installed
2. Check the current version
3. Back up your configuration
4. Upgrade to version 3.0.6 or later
5. Restart Flowise
6. Verify the fix is in place
7. Review access logs for signs of exploitation
8. If exploitation is suspected, investigate affected systems
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2025-59528-flowise-can-be-made-to-run-any-command-on/
### Done when
- [ ] flowise is at 3.0.6 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `npm list flowise` and confirm the version is 3.0.6 or higher, then restart Flowise and confirm all endpoints respond normally without errors.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- Flowise CSV and Airtable agents allow data theft via prompt injection Critical · CVE-2026-73487
- Flowise can run commands and read files outside its sandbox Critical · CVE-2026-119978
- Flowise OAuth2 token endpoint open to anyone, leaks access tokens Critical · CVE-2026-70478
- Flowise CSV Agent can run Python code sent by attackers Critical · CVE-2026-70477
- Flowise allows authenticated users to change other organizations' billing High · CVE-2026-70476
- Flowise allows any authenticated user to change execution records without permission check High · CVE-2026-70475
The same kind of mistake in other AI tools
- Langflow OSS allows arbitrary code execution through tool listing without admin check High · CVE-2026-128876
- Langflow OSS can run arbitrary code via tool-call interface before admin check High · CVE-2026-128867
- Langflow OSS allows remote code execution through improper code handling High · CVE-2026-127065
- Langflow OSS allows authenticated users to run arbitrary code High · CVE-2026-122088
- Langflow OSS allows authenticated users to run any command on the server High · CVE-2026-120601
Change history
- 15 Sep 2025: Made public
- 2 Dec 2026: Published
Official record
## Description### Cause of the VulnerabilityThe `CustomMCP` node allows users to input configuration settings for connecting to an external MCP (Model Context Protocol) 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`.### Vulnerability Flow1. **User Input Received**: Input is provided via the API endpoint `/api/v1/node-load-method/customMCP` through the `mcpServerConfig` parameter. 2. **Variable Substitution**: The `substituteVariablesInString` function replaces template variables like `$vars.xxx`, but no security filtering is applied during this step. 3. **Dangerous Code Execution**: The `convertToValidJSONString` function executes the input using `Function('return ' + inputString)()`. If the `inputString` contains malicious code, it gets executed in the global Node.js context, allowing actions such as command execution and file system access.## Taint Flow- **Taint 01: Route Registration** [`index.ts` (Line 5)](https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/routes/node-load-methods/index.ts#L5)- **Taint 02: Controller** [`index.ts` (Line 57–78)](https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/controllers/nodes/index.ts#L57-L78)- **Taint 03: Service** [`index.ts` (Line 91–94)](https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/services/nodes/index.ts#L91-L94)- **Taint 04: CustomMCP Node Entry Point** [`CustomMCP.ts` (Line 132)](https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L132)- **Taint 05: Variable Substitution** [`CustomMCP.ts` (Line 220)](https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L220)- **Taint 06: Dangerous Constructor Execution** [`CustomMCP.ts` (Line 262–270)](https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L262-L270)## Proof of Concept (PoC)```bash curl -X POST http://localhost:3000/api/v1/node-load-method/customMCP \ -H "Content-Type: application/json" \ -H "Authorization: Bearer tmY1fIjgqZ6-nWUuZ9G7VzDtlsOiSZlDZjFSxZrDd0Q" \ -d '{ "loadMethod": "listActions", "inputs": { "mcpServerConfig": "({x:(function(){const cp = process.mainModule.require(\"child_process\");cp.execSync(\"echo !!RCE-OK!! >/tmp/RCE.txt\");return 1;})()})" } }' ``` <img width="1907" height="958" alt="image" src="https://github.com/user-attachments/assets/78b50eb1-67af-4c8b-97ea-7e2c05426962" />When executed, this creates a file `/tmp/RCE.txt` on the server, confirming command execution.## Impact### Complete System Takeover and Infrastructure ThreatThis vulnerability allows attackers to execute arbitrary JavaScript code on the Flowise server, leading to:- Full system compromise - File system access - Command execution - Sensitive data exfiltrationAs only an API token is required, this poses an extreme security risk to business continuity and customer data.
Weakness type: CWE-94
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2025-59528For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.