CVE-2026-101861: Langflow Code Execution via eval() in Component Input Schema
Langflow 1.0.16 before 1.12.0 and 0.0.94 before 1.12.0 contain an unsafe eval() vulnerability in schema.py that allows authenticated attackers to achieve code execution by placing a Python object with a malicious repr method into component input options lists. The eval() sink is triggered when a component is converted into a LangChain tool via ComponentToolkit.gettools(), including during custom component saves through the API, by interpolating options into a Literal type string that is passed directly to eval() without safe evaluation controls.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must be authenticated and have high privileges. Exploitation requires placing a Python object with a malicious __repr__ method into a component input options list.
What action triggers the vulnerable eval() path?
The path is triggered when a component is converted into a LangChain tool through ComponentToolkit.get_tools(). It can also be reached while saving custom components through the API.
Which versions are affected?
Langflow versions 1.0.16 through before 1.12.0, and versions 0.0.94 through before 1.12.0, are affected. Version 1.12.0 is identified in the release reference as the fixed release.