Skip to content
CriticalVulnerability

CVE-2026-105697: Langflow arbitrary command execution through MCP stdio server configuration

Identifier
CVE-2026-105697
Published
Record updated
View JSON
Affected
  • langflow >= 1.1.2, < 1.10.3, fixed in 1.10.3, released July 23, 2026, 74 days before disclosure
  • langflow-base >= 0.1.2, < 0.10.3, fixed in 0.10.3, released July 23, 2026, 74 days before disclosure
  • lfx < 1.10.3, fixed in 1.10.3, released July 23, 2026, 74 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.5%

Summary

CVE-2026-105697 affects Langflow before 1.10.3, where the MCP stdio transport ran whatever command and args a user placed in an MCP server configuration, with no allowlist and, before 1.10.3, wrapped in bash -c "exec {command} ...". Any user who can reach the MCP server settings (POST/PATCH /api/v2/mcp/servers/{server_name}) or build a flow with the MCP Tools component can run an arbitrary OS command on the Langflow host as the Langflow process user, when Langflow connects to the server, even if the UI then reports a startup failure. With the default LANGFLOW_AUTO_LOGIN=true, GET /api/v1/auto_login issues a token without credentials, so the flaw is reachable without an account on an exposed default instance; with AUTO_LOGIN disabled, any authenticated non-admin user can exploit it.

Mitigation

Fixed in Langflow 1.10.3, langflow-base 0.10.3, and lfx 1.10.3.