Flowise · Flowise · CVE-2026-56274
**Name of the Vulnerable Software and Affected Versions**
Flowise versions prior to 3.1.2
**Description**
Multiple OS command injection flaws exist in the Custom MCP Server feature. An attacker with any account role or API access with view/update permissions for chatflows can execute arbitrary commands on the host machine. This is possible through three primary bypass methods:
1. Incomplete blocklist in the `validateCommandFlags()` function allows the use of `docker build`, which can pull remote Dockerfiles and execute instructions to gain host control.
2. The `validateCommandFlags()` function blocks the `-y` flag for `npx` but fails to block the long alias `--yes`, allowing the automatic installation and execution of malicious npm packages.
3. A regex bypass in the `validateArgsForLocalFileAccess()` function allows absolute paths starting with `//` to evade Unix absolute path restrictions, enabling the `node` command to load and execute local files.
**Recommendations**
Update Flowise to version 3.1.2 or later.
As a temporary mitigation, restrict access to the Custom MCP Server feature and limit API permissions for chatflow updates.