Code Injection in langlow (CVE-2026-10561)
Summary
Code injection in langlow (CVE-2026-10561). Successful exploitation can lead to full system takeover. Exploitable via PythonREPLComponent. Mitigation: upgrade to 1.10.1 or later.
Original description
The description as published by the source.
Summary
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 without effective sandboxing. Because the code ran in-process with the privileges of the Langflow service, any authenticated user who could edit and run a flow could achieve remote code execution and, from there, escalate privileges to superuser (e.g. by opening a database session and flipping is_superuser) or compromise the host.
This issue is fixed as of 1.10.1, with additional hardening through 1.12.3. See Remediation below.
Affected
- Package:
langflow(PyPI), and the underlyinglfxpackage that ships the component. - Vulnerable versions:
< 1.10.1. - Patched:
1.10.1(core fix). Upgrade to>= 1.12.3for the complete hardening series.
Details
The root cause is code injection (CWE-94/CWE-95): the component passed raw input to LangChain's PythonREPL, which is explicitly not a security sandbox.
Two distinct weaknesses existed before 1.10.1:
- Unrestricted builtins (default deployments).
get_globals()built theexecglobals from theglobal_importsallow-list but never set__builtins__. CPython'sexec()then auto-injected the fullbuiltinsmodule, leaving__import__,open,eval,execand the whole import machinery reachable regardless of the allow-list — e.g. `__im…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-10561 has been found in langlow.
Attackers can target a specific entry point like PythonREPLComponent over the network to misuse the product.
Successful exploitation can lead to full system takeover. CVSS score: 10.0/10.
What to do: upgrade langlow to 1.10.1 or later.
If unsure, ask your IT team or search "langlow CVE-2026-10561" on the vendor's site.
CVE-2026-10561 (langlow) — CWE-94 / CVSS v3 10.0
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: PythonREPLComponent / PythonREPLToolComponent / is_superuser / langflow
Patched: 1.10.1 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Arbitrary code execution (CWE-94) exists in langlow. Attackers reach the vulnerable code path via PythonREPLComponent without authentication.
Check the vendor advisory for the affected versions of langlow. Attack surface: PythonREPLComponent / PythonREPLToolComponent / is_superuser / langflow.
Severity: Critical (CVSS 10.0/10). Successful exploitation can lead to full system takeover.
Update to 1.10.1.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'langlow' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'langlow' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
langlowを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade langlow to 1.10.1ステージング環境で 1.10.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- package pypi.org
- web ibm.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com