# CVE-2026-105697: Langflow: OS command injection (RCE) via arbitrary command in MCP stdio server configuration

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.9
- **CVSS:** 9.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.37% (percentile 72, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** GHSA-w794-rj3p-xv45, PYSEC-2026-4237, PYSEC-2026-4239, PYSEC-2026-4241
- **Published:** 2026-10-05T20:16:58.291Z
- **Modified:** 2026-10-15T14:55:59.006Z

## Who should check

- Projects that depend on PyPI package langflow (\>= 1.1.2, \< 1.10.3)
- Projects that depend on PyPI package langflow-base (\>= 0.1.2, \< 0.10.3)
- Projects that depend on PyPI package lfx (\< 1.10.3)
- Anyone running langflow-ai langflow \>= 1.1.2, \< 1.10.3
- Anyone running langflow-ai langflow-base \>= 0.1.2, \< 0.10.3
- Anyone running langflow-ai lfx \< 1.10.3

## 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.

## Affected and fixed versions

- PyPI `langflow`: affected \>= 1.1.2, \< 1.10.3; fixed 1.10.3 (osv)
- PyPI `langflow-base`: affected \>= 0.1.2, \< 0.10.3; fixed 0.10.3 (osv)
- PyPI `lfx`: affected \< 1.10.3; fixed 1.10.3 (osv)
- langflow-ai langflow: \>= 1.1.2, \< 1.10.3 (cvelist)
- langflow-ai langflow-base: \>= 0.1.2, \< 0.10.3 (cvelist)
- langflow-ai lfx: \< 1.10.3 (cvelist)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-105697. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-105697.md
Affected: langflow >= 1.1.2, < 1.10.3; langflow-base >= 0.1.2, < 0.10.3; lfx < 1.10.3
Fixed in: 1.10.3, 0.10.3

Steps:
1. Search this machine and project for langflow (PyPI), langflow-base (PyPI), lfx (PyPI), langflow-ai langflow, langflow-ai langflow-base, langflow-ai lfx: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-105697 being exploited?

There is no confirmed exploitation: CVE-2026-105697 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.37% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-105697?

Critical: CVSS 9.9 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-105697?

langflow \>= 1.1.2, \< 1.10.3; langflow-base \>= 0.1.2, \< 0.10.3; lfx \< 1.10.3.

### Is there a fix for CVE-2026-105697?

Yes. Fixed in 1.10.3, 0.10.3. 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.

### How do I check if I'm affected by CVE-2026-105697?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/langflow-ai/langflow/security/advisories/GHSA-w794-rj3p-xv45>
- vendor: <https://github.com/langflow-ai/langflow/security/advisories/GHSA-7w94-79vh-5mr2>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-105697>
- vendor: <https://github.com/advisories/GHSA-w794-rj3p-xv45>
- patch: <https://github.com/langflow-ai/langflow/pull/12290>
- patch: <https://github.com/langflow-ai/langflow/pull/14036>
- patch: <https://github.com/langflow-ai/langflow/commit/eba285edf1dd4a33bf23a9cb8113c991fcdf3d1d>
- patch: <https://github.com/langflow-ai/langflow/commit/efbc4a16e639409d938a4883463d27ef0bc637a0>
- other: <https://github.com/langflow-ai/langflow/releases/tag/v1.10.3>
- other: <https://www.ox.security/blog/mcp-supply-chain-advisory-rce-vulnerabilities-across-the-ai-ecosystem>
- other: <https://www.ox.security/blog/the-mother-of-all-ai-supply-chains-critical-systemic-vulnerability-at-the-core-of-the-mcp>
- other: <https://github.com/langflow-ai/langflow>
- other: <https://pypi.org/project/langflow>
- other: <https://pypi.org/project/langflow-base>
- other: <https://pypi.org/project/lfx>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-105697>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-w794-rj3p-xv45> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-4237> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-4239> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-4241> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-105697> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-105697>
