Description
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.
Published: 2026-10-05
Score: 9.9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Langflow, a platform for building and deploying AI agents, contained an OS command injection flaw: the MCP stdio transport executed any command supplied in an MCP server configuration with no allowlist. When a user added or modified a server via the API, or constructed a flow with the MCP Tools component, the configured command ran automatically on the host as the Langflow process user. This arbitrary‑command capability directly enables remote code execution, allowing scripts such as reverse shells, file deletion, or other destructive actions. The vulnerability is therefore a classic RCE that can compromise confidentiality, integrity, and availability of the host system.

Affected Systems

The flaw existed in all Langflow releases prior to 1.10.3, in langflow‑base prior to 0.10.3, and in lfx prior to 1.10.3. Victims include any instance running the default configuration with LANGFLOW_AUTO_LOGIN=true, which automatically issues an access token via GET /api/v1/auto_login. When auto‑login is disabled, the issue still affects authenticated users, meaning every non‑admin or privileged user could exploit the vulnerability by creating or editing MCP server entries or building a flow that uses the MCP Tools component.

Risk and Exploitability

The CVSS score of 9.9 classifies this as critical. The EPSS score is not available, but the lack of protection in the default configuration and the ability to reach the API without credentials make exploitation highly likely. The vulnerability is not listed in the CISA KEV catalog yet, but the severity and ease of exploitation raise immediate concern. Attackers can exploit the flaw via HTTP API calls to /api/v2/mcp/servers/{server_name} or flow creation endpoints, running arbitrary commands as the Langflow process user. If the host grants broad permissions, the impact can extend to system compromise or data loss.

Generated by OpenCVE AI on October 5, 2026 at 22:40 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Langflow 1.10.3, langflow‑base 0.10.3, or lfx 1.10.3, which contain the fix for the command injection.
  • Set LANGFLOW_AUTO_LOGIN=false or otherwise disable the auto‑login feature to prevent unauthenticated token issuance.
  • Restrict the Langflow process user’s privileges and run the application in a hardened container or sandbox to limit the damage of any potential exploitation.

Generated by OpenCVE AI on October 5, 2026 at 22:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-w794-rj3p-xv45 Langflow: OS command injection (RCE) via arbitrary command in MCP stdio server configuration
History

Fri, 09 Oct 2026 20:15:00 +0000


Tue, 06 Oct 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Langflow
Langflow langflow
Langflow langflow-base
Langflow lfx
Vendors & Products Langflow
Langflow langflow
Langflow langflow-base
Langflow lfx

Tue, 06 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 05 Oct 2026 21:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Langflow: OS command injection (RCE) via arbitrary command in MCP stdio server configuration
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

Langflow Langflow Langflow-base Lfx
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-09T19:55:07.117Z

Reserved: 2026-10-05T17:48:58.627Z

Link: CVE-2026-105697

cve-icon Vulnrichment

Updated: 2026-10-06T14:36:04.520Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-10-05T21:16:35.087

Modified: 2026-10-09T20:17:09.307

Link: CVE-2026-105697

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-06T20:56:56Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')