ZeroHour

CVE-2026-91931

moderate

Authenticated RCE via npx Command Injection in Flowise Custom MCP Node

CVSS 4.0
9.0 critical
EPSS
Published
()
Modified
AI analysis

Flowise versions before 3.1.4 contain an operating system command injection flaw (CWE-78) in the Custom MCP node that allows authenticated users to achieve remote code execution on the Flowise server. An attacker triggers the flaw by supplying attacker-chosen npm package names in the mcpServerConfig parameter, which Flowise passes to npx, causing the malicious package to be downloaded and executed on the host. Successful exploitation gives full control of the Flowise server process, exposing API keys, credentials, chatbot data, and any connected systems, with CVSS v4.0 rated 9.0 (critical) despite requiring only low-privilege authentication. All deployments of Flowise prior to 3.1.4 that allow authenticated users to build or edit flows with the Custom MCP node are affected. No public proof-of-concept is known and the vulnerability is not in the CISA KEV catalog, but exploitation is plausible since Flowise instances are frequently shared among multiple low-trust users.

What to do: Upgrade Flowise to version 3.1.4 or later immediately. If immediate patching is not possible, restrict which authenticated users can create or edit flows using the Custom MCP node, and run Flowise in an isolated container with minimal privileges and no access to secrets beyond what is required. Review server logs for prior mcpServerConfig submissions referencing unusual npm package names or unexpected npx child processes to check for attempted or successful exploitation.

Affected
FlowiseAI Flowisebefore 3.1.4
Estimated exposure
moderate≈ low thousands of internet-exposed Flowise instances, plus an unknown but larger number of internal/self-hosted deployments (est. tens of thousands of… — Flowise is a widely self-hosted open-source LLM builder with multi-million Docker Hub pulls, while public internet scans typically show only a few thousand directly exposed instances, most running inside private networks.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Flowise before 3.1.4 contains a remote code execution vulnerability in the Custom MCP node that allows authenticated attackers to execute arbitrary code by supplying npx package names in the mcpServerConfig parameter. Attackers can invoke npx with attacker-controlled npm packages to execute code on the Flowise server.

Weakness
CWE-78
Vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.