CVE-2026-12940: Langflow is affected by remote code execution due to multiple unauthenticated and insufficiently authorized API endpoints

Published Jul 14, 2026
·
Updated

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 DANGEROUSENVVARS blocklist fails to include SHELLOPTS , BASHOPTS , and PS4 environment variables.

Other sources

Langflow versions through 1.9.6 are vulnerable to unauthenticated remote code execution via environment variable injection in the MCP (Model Context Protocol) stdio launcher. The vulnerability exists in

IBM

Affected Software

3 affected components
IBM Langflow>=1.0.0<=1.10.1
IBM Langflow OSS<=1.0.0-1.10.1
Langflow Langflow>=1.0.0<1.10.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade IBM Langflow OSS to a version that resolves this vulnerability.

    Fixed in 1.10.2
  2. Compensating control

    Restrict access to the MCP (Model Context Protocol) stdio launcher / MCP-related API endpoints so they are not reachable by unauthenticated users.

Event History

Jul 14, 2026
CVE Published
via IBM·12:00 AM
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jul 30, 2026
CVE Published
via MITRE·04:41 PM
Data Sourced
via MITRE·04:41 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-12940?

CVE-2026-12940 has a critical severity score of 9.8.

2

How does CVE-2026-12940 affect IBM Langflow?

CVE-2026-12940 affects IBM Langflow by allowing unauthenticated remote code execution through environment variable injection.

3

What versions of IBM Langflow are impacted by CVE-2026-12940?

IBM Langflow OSS versions 1.0.0 through 1.10.1 are impacted by CVE-2026-12940.

4

How can CVE-2026-12940 be mitigated?

To mitigate CVE-2026-12940, users should upgrade to a patched version of IBM Langflow that addresses this vulnerability.

5

What type of vulnerability is CVE-2026-12940 classified as?

CVE-2026-12940 is classified as an OS Command Injection vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203