criticalCVSS 9.8NVD status: Analyzed

CVE-2026-12940

Langflow: 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.

ComponentLangflow
Severitycritical (CVSS 9.8)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published (NVD)2026-07-30
Last modified2026-08-04
Affected versions
langflow >= 1.0.0, < 1.10.2
Fixed in1.10.2
WeaknessCWE-78
CISA KEVnot listed

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

Does CVE-2026-12940 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for Langflow.
Check my stack

What to do

  • Upgrade Langflow to 1.10.2 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Read more

Other Langflow CVEs

All Langflow CVEs