Severity: Critical | Priority: 1
Langflow is a visual builder for AI agents and LLM workflows. In versions before 1.9.0, any logged-in user can add a “stdio” MCP server whose command Langflow passes straight to a shell without validation, and the command runs on the Langflow server whenever the server list is loaded. That includes non-admin accounts and accounts created through auto-login or self-registration. The flaw is tracked as CVE-2026-105740 (CVSS 9.9). CVE-2026-105697 is a related command injection in the same feature, also rated 9.9.
The malicious server entry is saved in the project’s settings. The command therefore runs again every time the list loads, and it doesn’t show up when you review flows.
Honeypot data recorded 1,423 exploitation attempts from 27 IP addresses between September 19, 2026 and mid-October, with a sharp rise from October 11. Attackers ran reconnaissance commands, read system files, used Docker to reach the host filesystem, and tried to steal Langflow’s secret key and superuser password.
If an exploit alert is raised, treat the Langflow server as compromised, because the command runs as soon as the server list is loaded. Then:
Whether or not you see alerts, upgrade Langflow to 1.9.0 or later. Until you can:
LANGFLOW_AUTO_LOGIN=false and disable open user registration.Malicious entries persist after the upgrade, so review the MCP server settings in existing projects as well.