Skip to content
Threat Feed
critical advisory

Flowise Unauthenticated RCE via Environment Variable Bypass

Flowise v3.1.2 and earlier are vulnerable to unauthenticated remote code execution because the CVE-2025-8943 patch relies on an incomplete environment variable blocklist, allowing attackers to inject configuration variables that force arbitrary package installation.

CVE search metadata

CVE search record: CVE-2026-69263. EPSS: 0.27%. KEV: no. Product: Flowise (3.1.2), Flowise Components (3.1.2), Flowise, Flowise (<= 3.1.2), flowise-components, Flowise (<= 3.1.4), Flowise (2.2.4-3.1.4). Brief: Flowise Unauthenticated RCE via Environment Variable Bypass. Brief link: https://feed.craftedsignal.io/briefs/2026-08-flowise-rce/

CVE search record: CVE-2026-70476. EPSS: 0.29%. KEV: no. Product: Flowise (3.1.2), Flowise Components (3.1.2), Flowise, Flowise (<= 3.1.2), flowise-components, Flowise (<= 3.1.4), Flowise (2.2.4-3.1.4). Brief: Flowise Unauthenticated RCE via Environment Variable Bypass. Brief link: https://feed.craftedsignal.io/briefs/2026-08-flowise-rce/

CVE search record: CVE-2026-70471. EPSS: 0.28%. KEV: no. Product: Flowise (3.1.2), Flowise Components (3.1.2), Flowise, Flowise (<= 3.1.2), flowise-components, Flowise (<= 3.1.4), Flowise (2.2.4-3.1.4). Brief: Flowise Unauthenticated RCE via Environment Variable Bypass. Brief link: https://feed.craftedsignal.io/briefs/2026-08-flowise-rce/

CVE search record: CVE-2026-67621. Severity: high. CVSS: 7.6. EPSS: 0.27%. KEV: no. Product: Flowise (3.1.2), Flowise Components (3.1.2), Flowise, Flowise (<= 3.1.2), flowise-components, Flowise (<= 3.1.4), Flowise (2.2.4-3.1.4). Brief: Flowise Unauthenticated RCE via Environment Variable Bypass. Brief link: https://feed.craftedsignal.io/briefs/2026-08-flowise-rce/

CVE search record: CVE-2026-67620. Severity: high. CVSS: 7.7. EPSS: 0.43%. KEV: no. Product: Flowise (3.1.2), Flowise Components (3.1.2), Flowise, Flowise (<= 3.1.2), flowise-components, Flowise (<= 3.1.4), Flowise (2.2.4-3.1.4). Brief: Flowise Unauthenticated RCE via Environment Variable Bypass. Brief link: https://feed.craftedsignal.io/briefs/2026-08-flowise-rce/

CVE search record: CVE-2026-71962. Severity: high. CVSS: 7.5. KEV: no. Product: Flowise (3.1.2), Flowise Components (3.1.2), Flowise, Flowise (<= 3.1.2), flowise-components, Flowise (<= 3.1.4), Flowise (2.2.4-3.1.4). Brief: Flowise Unauthenticated RCE via Environment Variable Bypass. Brief link: https://feed.craftedsignal.io/briefs/2026-08-flowise-rce/

CVE search record: CVE-2026-70636. Severity: high. CVSS: 7.5. EPSS: 0.37%. KEV: no. Product: Flowise (3.1.2), Flowise Components (3.1.2), Flowise, Flowise (<= 3.1.2), flowise-components, Flowise (<= 3.1.4), Flowise (2.2.4-3.1.4). Brief: Flowise Unauthenticated RCE via Environment Variable Bypass. Brief link: https://feed.craftedsignal.io/briefs/2026-08-flowise-rce/

CVE search record: CVE-2026-70478. EPSS: 0.38%. KEV: no. Product: Flowise (3.1.2), Flowise Components (3.1.2), Flowise, Flowise (<= 3.1.2), flowise-components, Flowise (<= 3.1.4), Flowise (2.2.4-3.1.4). Brief: Flowise Unauthenticated RCE via Environment Variable Bypass. Brief link: https://feed.craftedsignal.io/briefs/2026-08-flowise-rce/

What's new

  • 1. added CVE-2026-70478 +2 Aug 10, 19:36 via nvd
  • 2. added CVE-2026-67620 +1 Aug 8, 17:43 via nvd
  • 3. added CVE-2025-8943 +1 Aug 6, 23:31 via nvd
  • 4. added CVE-2026-70471 +3 Aug 6, 23:29 via nvd
  • 5. added coverage for Flowise (<= 3.1.2) Aug 4, 19:40 via ghsa

Flowise (v3.1.2 and earlier) contains a critical security flaw involving an incomplete environment variable blocklist, identified as CVE-2026-69263. This vulnerability allows an attacker to bypass the intended security controls for the Model Context Protocol (MCP) server configuration, specifically those established in the previous CVE-2025-8943 patch. While the original patch successfully filtered dangerous CLI flags like -y for npx, it failed to account for npm configuration that can be passed via environment variables (e.g., npm_config_yes).

Because Flowise defaults to an unauthenticated state, a remote attacker can interact with the API to register a malicious MCP server. By including specific environment variables in the configuration, an attacker can influence the behavior of npx, node, or python3 to achieve remote code execution. This is a classic case of incomplete denylisting, where developers attempted to enumerate dangerous inputs rather than implementing a secure allowlist, leaving the environment vulnerable to various configuration injection vectors.

Attack Chain

  1. Attacker discovers an internet-facing, unauthenticated Flowise instance.
  2. Attacker interacts with the Flowise API to create or update an MCP server configuration.
  3. Attacker crafts a JSON payload containing the mcpServers object with a command like npx.
  4. Attacker inserts environment variables such as npm_config_yes=true into the env field of the payload.
  5. Flowise validation logic (validateCommandFlags) is bypassed because the CLI flags are clean.
  6. Flowise validation logic (validateEnvironmentVariables) is bypassed because the blocklist only contains four hardcoded entries (PATH, LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, NODE_OPTIONS).
  7. Flowise spawns the npx process, which reads the injected environment variable and proceeds with automatic package installation.
  8. Malicious code is executed under the privileges of the Flowise process, resulting in full system compromise.

Impact

Successful exploitation results in unauthenticated remote code execution on the server running Flowise. Given the tool's nature as an LLM integration platform, successful compromise often grants an attacker access to connected sensitive data, API keys for AI providers, and internal network resources. All versions up to and including 3.1.2 are confirmed to be vulnerable.

Recommendation

  1. Upgrade to a version of Flowise that implements an allowlist-based validation approach for environment variables rather than a denylist.
  2. Implement strict authentication on all Flowise API endpoints to prevent unauthenticated access to configuration interfaces.
  3. Restrict outbound network access for the server running Flowise to prevent the automatic installation of arbitrary npm/pip packages from the internet.
  4. Ensure that the service account running the Flowise process operates with the principle of least privilege, minimizing the damage from a successful code execution event.

Immediate actions

Upgrade Flowise to the latest patched release immediately

IT Operations 24h

Mitigations

Enable authentication for the Flowise instance if currently unauthenticated

immediate IT Operations

Unauthenticated API access

Detection coverage 6

Detect Suspicious Dynamic Import in Node.js via Pyodide

critical

Detects attempts to use dynamic import for child_process or fs modules, often associated with sandbox breakouts in Node.js environments.

sigma tactics: execution techniques: T1059.003 sources: webserver

Detect Unauthenticated OAuth2 Refresh Attempts

high

Detects unauthorized attempts to access the Flowise OAuth2 credential refresh endpoint by monitoring for POST requests to the refresh path that may indicate exploitation of CVE-2026-70478.

sigma tactics: initial_access techniques: T1550.001 sources: webserver

Detect CVE-2026-70476 Exploitation - Unauthorized Billing Modification

high

Detects unauthorized attempts to modify billing or subscription plans via the organization API endpoints.

sigma tactics: privilege_escalation techniques: T1548 sources: webserver

Detect CVE-2026-70475 Exploitation - PUT Request to Flowise Executions

high

Detects PUT requests to the executions endpoint which may indicate exploitation of CVE-2026-70475 by low-privileged users.

sigma tactics: privilege_escalation techniques: T1068 sources: webserver

Detect Unauthenticated OAuth2 Credential Refresh Attempts

critical

Detects potential exploitation of the unauthenticated OAuth2 token refresh endpoint in Flowise.

sigma tactics: collection techniques: T1555.003 sources: webserver

Detect Excessive Data Exposure via Flowise API

high

Detects potentially anomalous large response sizes from the Flowise upsert-history endpoint which may indicate data exfiltration.

sigma tactics: exfiltration techniques: T1597 sources: webserver

Detection queries are available on the platform. Get full rules →

Indicators of compromise

2

ip

TypeValue
ip192.0.0.192
ip100.100.100.200