Langflow
Langflow: OS command injection (RCE) via arbitrary command in MCP stdio server configuration
Langflow is a tool for building and deploying AI-powered agents and workflows. Before Langflow 1.10.3, the MCP stdio transport launched whatever command / args a user put in an MCP server configuration, with no allowlist and (before 1.10.3) wrapped in bash -c "exec {command} ...". Any user able to reach the MCP server settings ("Settings → MCP Servers → Add MCP Server", POST/PATCH /api/v2/mcp/servers/{server_name}) or to build a flow with the MCP Tools component could add a "server" whose command is an arbitrary OS command (touch, rm -rf, a reverse shell, ...). The command runs on the Langflow host as the Langflow process user as soon as Langflow tries to connect to the server (listing servers, loading tools, running the flow) — even when the UI then reports that the stdio server failed to start. With the default LANGFLOW_AUTO_LOGIN=true, GET /api/v1/auto_login hands out a token without credentials, so on an exposed instance running the default configuration this is reachable without an account. AUTO_LOGIN is documented as a development-only setting; with it disabled, any authenticated (non-admin) user can exploit it. This issue is fixed in Langflow 1.10.3, langflow-base 0.10.3, and lfx 1.10.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.1.2, < 1.10.3
Fixed in 1.10.3
- >= 0.1.2, < 0.10.3
Fixed in 0.10.3
- < 1.10.3
Fixed in 1.10.3
Mitigation
Upgrade langflow to 1.10.3 or later.
Upgrade langflow-base to 0.10.3 or later.
Upgrade lfx to 1.10.3 or later.
References
- Vendor advisory github.com/langflow-ai/langflow/security/advis…
- Vendor advisory github.com/langflow-ai/langflow/security/advis…
- Patch github.com/langflow-ai/langflow/pull/12290
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 informational
Informational 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| Iceman2050/mcp-patch-gap-scanner | 18 Oct 2026 +13 d | 14 Nov 2026 | 0 | Informational · detection
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.