# CVE-2026-56274: Flowise - Remote Code Execution via MCP Security Bypass in validateCommandFlags and validateArgsForLocalFileAccess

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 9.74%, higher than 95% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-14T14:57:30.000Z
- Modified: 2026-07-08T08:27:05.629Z
- Also known as: GHSA-m99r-2hxc-cp3q
- Weaknesses: CWE-78, CWE-184
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

Flowise before 3.1.2 contains multiple OS command injection vulnerabilities in the Custom MCP Server feature due to incomplete command-flag validation and a regex bypass in local file access restrictions. An attacker with a Flowise account of any role, or API access with view/update permissions for chatflows, can configure a malicious MCP server to bypass the validateCommandFlags blocklist (for example, 'docker build' is not blocked, and 'npx --yes' is not blocked while only '-y' is) and the validateArgsForLocalFileAccess checks, resulting in execution of arbitrary commands on the Flowise host.

(As written by CVE List.)

## Affected

- Flowise Flowise: before 3.1.2 (not affected: 3.1.2)
- Flowise Flowise Components: before 3.1.2 (not affected: 3.1.2)
- flowise (npm): before 3.1.2
- flowise-components (npm): before 3.1.2
- flowiseai flowise: before 3.1.2

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-m99r-2hxc-cp3q> (exploit, third-party-advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/flowise-remote-code-execution-via-mcp-security-bypass-in-validatecommandflags-and-validateargsforlocalfileaccess> (third-party-advisory)
- <https://github.com/FlowiseAI/Flowise> (package)
- <https://github.com/FlowiseAI/Flowise/releases/tag/flowise%403.1.2> (web)

## Sources

- CVE List: [CVE-2026-56274](https://www.cve.org/CVERecord?id=CVE-2026-56274), CVE Terms of Use, modified 2026-06-24
- GitHub Advisory Database: [GHSA-m99r-2hxc-cp3q](https://github.com/advisories/GHSA-m99r-2hxc-cp3q), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-56274](https://nvd.nist.gov/vuln/detail/CVE-2026-56274), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-56274 · Whole record: https://cve.day/CVE-2026-56274.json · Rebuilt by cve.day 2026-11-25T22:59:25.455Z
