All vulnerabilities

Servers and applications

GHSA-x7x8-95gh-42xm

Flowise MCP Server Config cwd Parameter Validation Bypass

Severity
Critical 9.0
Published
31 Aug 2026
Last changed
31 Aug 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.1.4
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS 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
Sources
Project advisories (GitHub)

Description

A validation bypass in Flowise's MCP server configuration allows authenticated attackers to achieve arbitrary code execution by exploiting an unvalidated cwd parameter that bypasses existing security controls.

The validateMCPServerConfig() function in packages/components/nodes/tools/MCP/core.ts validates the command, args, and env parameters but completely ignores the cwd parameter. This parameter is later passed directly to StdioClientTransport, allowing attackers to bypass path validation by using clean filenames in args while controlling the working directory via cwd.

  • Attacker uses clean filename in args array: ["script.js"] (passes validation)
  • Attacker sets cwd to point to directory with malicious files: "/upload/path" (unvalidated)
  • Validation succeeds because filename contains no path traversal
  • Process spawns from attacker-controlled directory, executing malicious code
From FlowiseAI/Flowise's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
FlowiseServers and applications · github:flowiseai/flowise
  • Every version before 3.1.4

About Flowise

Build AI Agents, Visually

From its GitHub repository.
Archived
Yes, no longer maintainedGitHub
Weekly downloads (npm)
6,604npm, 15 Nov 2026
Docker Hub pulls
7,390,661Docker Hub, 15 Nov 2026
GitHub stars
55,573GitHub, 15 Nov 2026
Forks
25,094GitHub, 15 Nov 2026
Latest release
[email protected]GitHub, 15 Nov 2026
Released
29 Jul 2026GitHub
First published on GitHub
31 Mar 2023GitHub

References