Description
IBM Langflow OSS 1.0.0 through 1.10.1 are vulnerable to unauthenticated remote code execution via environment variable injection in the MCP (Model Context Protocol) stdio launcher. The vulnerability exists in src/lfx/src/lfx/base/mcp/util.py where the DANGEROUS_ENV_VARS blocklist fails to include SHELLOPTS , BASHOPTS , and PS4 environment variables.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| IBM | Langflow OSS | 1.0.0 – ≤ 1.10.1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
BiiTts/CVE-2026-12940-Langflow-Unauth-RCE ★ 4 · Aug 3, 2026
CVE-2026-12940 — Langflow OSS <=1.10.1 unauthenticated RCE via MCP stdio environment-variable injection (SHELLOPTS/PS4). Author PoC + source analysis + lab.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- WID-SEC-2026-2366 IBM Langflow Desktop: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 30, 2026
References
- https://www.ibm.com/support/pages/node/7279995 vendor-advisory patch