CVE-2026-10561: Langflow PythonREPLComponent Unsandboxed Code Execution Vulnerability

langflow Updated 06 Oct 2026

Summary

06/10/2026
Yes i
Critical
9.9

CVE-2026-10561: Langflow's built-in Python interpreter components — PythonREPLComponent (Python Interpreter) and the legacy PythonREPLToolComponent (Python REPL Tool) — executed arbitrary user- or model-supplied Python code inside flows... Affects langflow versions < 1.10.1. Fixed in 1.10.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Langflow is an open-source framework that facilitates the creation of applications using language models. It provides various components, including the PythonREPLComponent, which allows users to execute Python code within flows. However, this functionality has led to a critical vulnerability due to the lack of effective sandboxing, allowing authenticated users to execute arbitrary code with the privileges of the Langflow service.

Vulnerability Detail

The vulnerability arises from the PythonREPLComponent and the legacy PythonREPLToolComponent executing arbitrary user-supplied Python code without proper sandboxing. This code runs in-process with the privileges of the Langflow service, enabling any authenticated user who can edit and run a flow to achieve remote code execution (RCE) and escalate privileges to superuser. The root cause is code injection, where raw input is passed to LangChain's PythonREPL, which is not a security sandbox. Two main weaknesses contributed to this issue: unrestricted builtins that allowed access to critical functions and a lack of server-policy checks that failed to prevent code execution even in locked-down deployments.

How To Fix

Latest published version: 1.14.0.dev2 as of 22 Oct 2026

pip install --upgrade "langflow==1.14.0.dev2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.10.1

This is the first release that contains the fix.

pip install --upgrade "langflow==1.10.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

For immediate mitigation, set the environment variable LANGFLOW_ALLOW_CUSTOM_COMPONENTS=false or LANGFLOW_BLOCK_CODE_INTERPRETER_COMPONENTS=true to disable the interpreter entirely. This will prevent any execution of untrusted code.

Conclusion

The Langflow vulnerability CVE-2026-10561 poses a significant risk due to unsandboxed code execution capabilities. It is crucial for users to upgrade to the patched version to mitigate the risks associated with this vulnerability. Implementing the recommended workarounds can provide immediate protection while awaiting updates.

See every vulnerability recorded for langflow →

Share this vulnerability

FAQ

CVE-2026-10561 is a critical vulnerability in Langflow's PythonREPLComponent that allows authenticated users to execute arbitrary Python code, leading to remote code execution and privilege escalation.

Any authenticated user of Langflow who can edit and run flows is potentially affected by this vulnerability.

The vulnerability allows authenticated users to execute arbitrary commands with the service's privileges, escalate their accounts to superuser, and potentially compromise the host system.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.

The CVSS score of this vulnerability is 9.9, indicating a critical level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for langflow.

How To Fix

Latest published version: 1.14.0.dev2 as of 22 Oct 2026

pip install --upgrade "langflow==1.14.0.dev2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.10.1

This is the first release that contains the fix.

pip install --upgrade "langflow==1.10.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback