Skip to main content
Mallory
CriticalPublic exploit

Command Injection in Flowise Custom MCP stdio Configuration

IdentifiersCVE-2026-40933CWE-78· Improper Neutralization of Special…

CVE-2026-40933 is a command injection / server-side remote code execution vulnerability in Flowise prior to version 3.1.0, affecting the Custom MCP functionality that uses the Model Context Protocol (MCP) stdio transport. The flaw is caused by unsafe serialization and execution of user-controlled stdio command configurations in the MCP adapter. In the vulnerable design, Flowise allows users to define an MCP stdio server from the canvas Custom MCP configuration, and the configured command is launched as a child process on the Flowise host. Although Flowise implemented validation and allowlisting checks such as validateCommandInjection, validateArgsForLocalFileAccess, and restrictions around specific commands and flags, the underlying execution primitive remained user-controlled. Allowed commands such as npm or npx could still be combined with arguments or equivalent mechanisms that result in arbitrary OS command execution. The provided context also states that a crafted chatflow import can trigger backend MCP tool enumeration during rendering, causing code execution on import alone, before any explicit save or run action. The issue affects self-hosted Flowise deployments where stdio MCP is enabled and was fixed in Flowise 3.1.0.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an authenticated attacker, or a user able to import or influence chatflow/MCP configuration in a vulnerable deployment, to execute arbitrary operating system commands with the privileges of the Flowise process. In practice this is full server-side RCE. Depending on deployment context, this can expose stored credentials, API keys, chat data, connected SaaS integrations, databases, cloud resources, and adjacent internal systems reachable from the Flowise host. In containerized deployments where Flowise runs with elevated privileges, impact may extend to full container compromise and broader infrastructure exposure.

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible, disable stdio MCP by setting CUSTOM_MCP_PROTOCOL=sse, per the provided research context. Do not rely solely on Flowise's validation-based security checks such as CUSTOM_MCP_SECURITY_CHECK, because the content indicates these checks are bypassable and do not remove the underlying execution primitive. Limit which users can add Custom MCP tools or import chatflows, isolate Flowise from sensitive internal networks and services, run the Flowise process with minimal privileges, and monitor for suspicious MCP tool creation, import activity, and child-process execution from the Flowise host.

Remediation

Patch, then assume compromise.

Upgrade Flowise to version 3.1.0 or later, as the vulnerability is fixed in 3.1.0 according to the provided content. Apply the corresponding fixed versions for both the flowise and flowise-components npm packages where applicable. In addition, review whether Custom MCP stdio support is necessary in the environment; if not, disable stdio MCP and use the safer supported protocol configuration referenced in the content. Restrict permissions for creating, editing, or importing chatflows and MCP configurations, especially in multi-user deployments, and treat imported chatflows as untrusted content.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
FlowiseaiFlowiseapplication
FlowiseaiFlowise-Componentsapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity17

Community discussion across Reddit, Mastodon, and other social sources.