CVE-2026-9135: Policies Component Dynamic CodeInput Fields Bypass Custom Component Validation
IBM Langflow OSS 1.0.0 through 1.10.0 Langflow versions up to 1.9.2 (commit 94981c443d4918517b9e8163d70fc598dc33a32d) contain a code injection vulnerability in the Policies component's ToolGuard integration that bypasses the allowcustomcomponents=false security control. The vulnerability exists because the validation mechanism only checks the main component source code in nodetemplate["code"]["value"] but fails to validate dynamic CodeInput fields that store generated ToolGuard Python files. Attackers can embed malicious Python code in these unvalidated dynamic fields, which are persisted in Flow.data and later executed server-side when a guarded tool is invoked through the ToolGuard runtime. This allows authenticated users with flow creation privileges to achieve arbitrary Python code execution on the backend despite custom component restrictions. The vulnerability can be escalated through cross-tenant flow manipulation via the agentic MCP updateflowcomponentfield tool, which accepts attacker-controlled userid parameters, enabling attackers to inject malicious code into victim users' flows. When combined with publicly accessible flows and specific misconfigurations (AUTOLOGIN=true, NEWUSERISACTIVE=true), the attack can be conducted with reduced authentication requirements.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
IBM Langflow OSSto a version that resolves this vulnerability.Fixed in 1.10.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-9135?
The severity of CVE-2026-9135 is critical with a score of 9.9.
How do I fix CVE-2026-9135?
To fix CVE-2026-9135, upgrade IBM Langflow OSS to version 1.10.0 or later.
What type of vulnerability is CVE-2026-9135?
CVE-2026-9135 is a code injection vulnerability related to bypassing custom component validation.
Which versions of IBM Langflow OSS are affected by CVE-2026-9135?
CVE-2026-9135 affects IBM Langflow OSS versions 1.0.0 through 1.9.2.
What components are involved in CVE-2026-9135?
CVE-2026-9135 involves the Policies component and ToolGuard integration in IBM Langflow OSS.