Flowise can run untrusted code when MCP tools are configured

HighSE Fix-First Score 43/100CVE-2026-69263SE-AIV-01695Remote code executionAI agents and assistantsMade public 4 Aug 2026

Download as PDF

What this means

An attacker can run arbitrary code on the server without logging in. They could read files, install malware, modify data, or take over the entire system. On a default Flowise setup with no password, this is a serious risk.

SecurityElites Manager Brief: the decision in one minute

A security fix for Flowise was incomplete. Attackers can bypass it by using environment variables instead of command-line flags to make npm auto-install and run malicious code. This affects any Flowise instance with MCP tools turned on and no authentication.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or infrastructure team that manages Flowise deployments.
Likely effortAbout 15 minutes per instance: upgrade to the fixed version and restart. No other changes needed. Downtime is minimal if you automate restarts.

Questions to ask your team or supplier

  • Is MCP (Model Context Protocol) tool functionality enabled on any of our Flowise instances, and do we have a list of them?
  • Do any of our Flowise deployments run without authentication, and if so, can we add a password or restrict network access?
  • Have we checked our logs from before this patch to see if anyone already tried to abuse this vulnerability?

Message you can forward to the owning team

Security notice: Flowise can run untrusted code when MCP tools are configured (CVE-2026-69263)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to flowise 3.1.3, flowise-components 3.1.3 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-2026-69263-flowise-can-run-untrusted-code-when-mcp-tools-are/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01695

What is at stake in your AI setup

  • Tools and systems connected to MCP agents: an attacker gains control over what your agents can access and do.
  • Keys for AI providers: if Flowise stores API keys in environment or configuration, they could be read and stolen.
  • Prompts and chat history: logs and stored conversations could be read or modified.
  • Compute bill: an attacker could run expensive operations or mine cryptocurrency on your server.

Map where your company uses AI

Who is exposed

  • Any Flowise instance with MCP security check enabled (CUSTOM_MCP_SECURITY_CHECK=true) or default Flowise without authentication.
  • Teams running versions before 3.1.3 of flowise or flowise-components npm packages.
  • Deployments where the MCP (Model Context Protocol) tool feature is active.

Upgrades you need

SoftwareAffected versionsMove to
flowise
npm
Every version before 3.1.33.1.3 or later
flowise-components
npm
Every version before 3.1.33.1.3 or later

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedWorking attack code is public, so expect attacks to follow
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Kind of coding mistake

  • CWE-184

If you cannot upgrade today

  • If you cannot upgrade immediately, disable MCP tools entirely by removing or setting `CUSTOM_MCP_SECURITY_CHECK=false` and removing any MCP tool configurations from your Flowise setup.
  • Add authentication to Flowise so unauthenticated access is blocked, even though this does not fix the underlying vulnerability.

Signs it may already have been used against you

  • Look in system process logs for unexpected spawning of npm, npx, node, or python processes by the Flowise service, especially with auto-install behavior.
  • Check Flowise application logs for errors about environment variable validation or MCP server startup failures that might indicate an attack was attempted.
  • Review system file access logs for unusual reads or writes in package cache directories or system directories that should not be touched by Flowise.
  • Look for unexpected network connections initiated by child processes of Flowise, such as downloads from npm registry or external package sources.

SecurityElites Fix Guide: step by step

  1. Find Flowise in your systemsList all servers and containers running Flowise. Check your package.json files for flowise or flowise-components, or run `npm list flowise` in each project.
  2. Check the current versionRun `npm list flowise` and `npm list flowise-components` for each affected project. Note down all version numbers.
  3. Back up your Flowise dataIf Flowise stores data locally, copy the database and configuration files to a safe location.
  4. Upgrade flowise to 3.1.3 or laterIn each project using flowise, upgrade the package to version 3.1.3 or the latest available version. Run the package manager's upgrade command for your setup.
  5. Upgrade flowise-components to 3.1.3 or laterIn each project using flowise-components, upgrade to version 3.1.3 or later.
  6. Restart FlowiseStop all Flowise services and start them again. Wait for them to fully start before testing.
  7. Confirm the fixRun `npm list flowise` and `npm list flowise-components` again. Verify both show version 3.1.3 or higher.
  8. Check for signs of past attacksLook at system logs and Flowise logs from before the upgrade for unusual process starts, especially unexpected npm, node, or python execution. Review what code was run and what data was accessed.

How to confirm it is fixed: Run `npm list flowise` and `npm list flowise-components` and confirm both show version 3.1.3 or higher.

SecurityElites Quick Fixes: copy and paste

Upgrade flowise with npmupgrade

npm install flowise@3.1.3
npm ls flowise

Upgrade flowise-components with npmupgrade

npm install flowise-components@3.1.3
npm ls flowise-components

Check flowise version (npm)for this issue

npm list flowise

Check flowise-components version (npm)for this issue

npm list flowise-components

Run 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_IMAGE

Test 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-2026-69263) 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.1.3 or later
   - flowise-components (npm): must be 3.1.3 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.

Why does the previous security patch not fully stop this attack?A good answer: It only blocked command-line flags like `-y` and `--yes`, but npm also reads settings from environment variables like `npm_config_yes`, which the patch did not block.
What can an attacker do if they exploit this vulnerability?A good answer: They can run any code they want on the server without needing to log in, so they can read files, install malware, change data, or take over the system.
What versions of flowise and flowise-components are fixed?A good answer: Version 3.1.3 and all later versions of both flowise and flowise-components are fixed.
How do we know if this vulnerability affects us?A good answer: If you run Flowise before version 3.1.3 and have MCP tools enabled or authentication disabled, you are affected.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## Flowise can run untrusted code when MCP tools are configured (CVE-2026-69263)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01695 https://securityelites.com/ai-vulnerabilities/cve-2026-69263-flowise-can-run-untrusted-code-when-mcp-tools-are/

### Why this matters
An attacker can run arbitrary code on the server without logging in. They could read files, install malware, modify data, or take over the entire system. On a default Flowise setup with no password, this is a serious risk.

### What to do
1. Find Flowise in your systems
2. Check the current version
3. Back up your Flowise data
4. Upgrade flowise to 3.1.3 or later
5. Upgrade flowise-components to 3.1.3 or later
6. Restart Flowise
7. Confirm the fix
8. Check for signs of past attacks

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-69263-flowise-can-run-untrusted-code-when-mcp-tools-are/

### Done when
- [ ] flowise is at 3.1.3 or later everywhere it is installed
- [ ] flowise-components is at 3.1.3 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `npm list flowise` and `npm list flowise-components` and confirm both show version 3.1.3 or higher.
- [ ] 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.

Sign in to track this fix

Change history

  • 4 Aug 2026: Made public
  • 2 Dec 2026: Published

Official record

## SummaryThe mitigation shipped for CVE-2025-8943 blocks the `-y` and `--yes` flags on `npx` to stop auto-installation of arbitrary packages. That flag filter works. The environment-variable check in the same patch denies only four variable names by exact string match, and `npm` reads its configuration directly from `npm_config_*` environment variables. Setting `npm_config_yes=true` reproduces the `--yes` behaviour the flag filter is meant to prevent, so `npx` auto-installs and executes the named package. The mitigation is fully bypassed.This works with the MCP security check enabled (`CUSTOM_MCP_SECURITY_CHECK=true`). On a default Flowise deployment, which ships with no authentication, the result is unauthenticated remote code execution.## Root causeThe patch treats this as a flag-filtering problem, but the behaviour gated by `--yes` is also reachable through `npm`'s environment-based configuration. The same is true for the other permitted interpreters, `node` and `python3`. A denylist of variable names cannot enumerate every environment variable that alters execution, so the control is incomplete by construction. The fix is to allowlist (or strip) the environment before it reaches the child process, not to extend the denylist.## Affected versionFlowise 3.1.1, current as of 2026-03-29.## DetailsValidation happens in `packages/components/nodes/tools/MCP/core.ts`. Two functions run in sequence before any MCP server launches: `validateCommandFlags` and `validateEnvironmentVariables`.`validateCommandFlags` is thorough. It blocks `-y` and `--yes` along with a comprehensive set of dangerous flags across `npx`, `node`, `python`, `python3`, and `docker`. That part of the patch is sound.The gap is in `validateEnvironmentVariables`:```typescript export const validateEnvironmentVariables = (env: Record<string, any>): void => { const dangerousEnvVars = ['PATH', 'LD_LIBRARY_PATH', 'DYLD_LIBRARY_PATH', 'NODE_OPTIONS'] for (const [key, value] of Object.entries(env)) { if (dangerousEnvVars.includes(key)) { throw new Error(`Environment variable '${key}' modification is not allowed`) } if (typeof value === 'string' && value.includes('\0')) { throw new Error(`Environment variable '${key}' contains null byte`) } } } ```The blocklist is a hardcoded four-item array checked by exact match. Any variable not in that list passes through unchecked. `npm_config_yes` is npm's documented mechanism for setting the `yes` config via the environment. Set to `true`, it causes `npx` to auto-install without prompting, which is exactly what the `-y` and `--yes` flag blocks are intended to prevent.## Proof of conceptThe following MCP server configuration bypasses the patch with `CUSTOM_MCP_SECURITY_CHECK=true`:```json { "mcpServers": { "bypass": { "command": "npx", "args": ["malicious-package"], "env": { "npm_config_yes": "true" } } } } ```Execution path:1. `validateCommandFlags` passes, because `args` contains no blocked flags. 2. `validateEnvironmentVariables` passes, because `npm_config_yes` is not in the four-item blocklist. 3. `npx` auto-installs and executes the named package with the privileges of the Flowise process.On a default deployment with no authentication, any unauthenticated user who can reach the Flowise API can trigger this.## Additional bypass vectors (same root cause)The following variables are also absent from the blocklist and influence execution through the other permitted interpreters:| Variable | Command | Effect | |---|---|---| | `npm_config_prefix` | `npx` | Redirects package installation to attacker-controlled path | | `npm_config_userconfig` | `npx` | Loads attacker-controlled `.npmrc` configuration | | `NODE_PATH` | `node` | Loads modules from attacker-controlled path | | `PYTHONPATH` | `python3` | Loads modules from attacker-controlled path | | `PYTHONSTARTUP` | `python3` | Execute

Weakness type: CWE-184

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-69263

For 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.