---
id: CVE-2026-105740
title: Langflow is a tool for building and deploying AI-powered agents and workflows
summary: >-
  Langflow is a tool for building and deploying AI-powered agents and workflows.
  Prior to 1.9.0, any authenticated Langflow user can achieve Remote Code
  Execution (RCE) on the server by adding an MCP server with the "Stdio"
  transport. The …
severity: critical
cvss: 9.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-78
vendor: langflow-ai
product: langflow
affected:
  - langflow < 1.9.0
published: '2026-10-05'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T19:17:41.197'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-105740'
references:
  - url: >-
      https://github.com/langflow-ai/langflow/commit/efbc4a16e639409d938a4883463d27ef0bc637a0
    label: security-advisories@github.com
  - url: 'https://github.com/langflow-ai/langflow/pull/12290'
    label: security-advisories@github.com
  - url: >-
      https://github.com/langflow-ai/langflow/security/advisories/GHSA-7w94-79vh-5mr2
    label: security-advisories@github.com
  - url: >-
      https://github.com/langflow-ai/langflow/security/advisories/GHSA-w794-rj3p-xv45
    label: security-advisories@github.com
  - url: >-
      https://github.com/langflow-ai/langflow/security/advisories/GHSA-7w94-79vh-5mr2
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://github.com/langflow-ai/langflow/security/advisories/GHSA-w794-rj3p-xv45
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-06T18:20:20.481095Z'
ingestedAt: '2026-10-05T21:34:25.114Z'
epss: 0.03885
epssPercentile: 0.90264
exploits:
  nuclei:
    - CVE-2026-105740
  checkedAt: '2026-11-05T15:29:08.643Z'
---

## Overview

Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to 1.9.0, any authenticated Langflow user can achieve Remote Code Execution (RCE) on the server by adding an MCP server with the "Stdio" transport. The user-supplied command field is passed directly to bash -c "exec {command}" with zero validation, no allowlisting, and no sandboxing. The command executes immediately when the server list is fetched. Additionally, the env field allows arbitrary environment variable injection (e.g., LD_PRELOAD, PATH override). This vulnerability is fixed in 1.9.0.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
