Langflow 1.0.16 - 1.11.6: unsafe eval() on Tool-Mode input options in schema.py
GHSA-33p4-w7j3-33mw · published 2026-09-28
- Severity
- Low
- CVSS score
- 2.1
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 1.12.0
From Langflow 1.0.16 through 1.11.6, create_input_schema() and create_input_schema_from_dict() in schema.py built a typing.Literal type for inputs with an options list (for example DropdownInput) by interpolating the list into a string and passing it to eval(): The sink runs whenever a component is converted into a LangChain tool (ComponentToolkit.get_tools()), for example when a custom component with tool_mode=True is saved through Check & Save (POST /api/v1/custom_component), or when a Tool-Mode component or flow-as-tool is built. This was fixed in Langflow 1.12.0 by #14502, which replaces eval() with Literal[tuple(options)].
Upgrade langflow to 1.12.0 or later, and langflow-base to 1.12.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Fixed in Langflow 1.12.0 by #14502 ("fix(security): replace eval() with safe Literal construction in schema.py", merge commit ab5d776fbb9bd425228873b42e5b6a0dccfbc253). Regression tests were added in . Upgrade to langflow >= 1.12.0 (or langflow-base >= 1.12.0 / lfx >= 1.12.0). Independently of this issue, only grant custom-component and code-editing rights to trusted users, and set LANGFLOW_ALLOW_CUSTOM_COMPONENTS=false on deployments where users must not run arbitrary Python.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| langflow | PyPI | >= 1.0.16, < 1.12.0 | 1.12.0 |
| langflow-base | PyPI | >= 0.0.94, < 1.12.0 | 1.12.0 |
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalStorybook: Missing origin validation in Storybook preview allows code injection from malicious websites@storybook/addon-mcp, @storybook/addon-mcp
- CriticalClaude Agent SDK: Argument Injection via resume Option Allows Arbitrary Command Executionclaude-agent-sdk
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
The impact, patch and workaround text comes from the advisory, shortened (published by Langflow). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.