CVE-2026-10561: Langflow's Python Interpreter component ran code with no real sandbox
Before 1.10.1, any logged-in Langflow user who could edit and run a flow could use the Python Interpreter component to run OS commands as the Langflow service and make their own account a superuser.
What it is
The PythonREPLComponent (Python Interpreter) and the legacy PythonREPLToolComponent passed user- or model-supplied code to LangChain's PythonREPL, which is not a security sandbox, and ran it in-process.
The import allow-list didn't hold: the exec globals never set __builtins__, so __import__, open, eval and exec stayed reachable even in the default configuration.
Locked-down instances with allow_custom_components=False were still exposed, because the components didn't check that policy before running code. The reported proof of concept opens a database session and sets is_superuser on the attacker's account.
How to check
- Affected: langflow (pip) < 1.10.1, and the lfx package that ships the component.
- Check whether any flow on your instance uses the Python Interpreter or Python REPL Tool component, and who can edit flows.
How to fix
- Upgrade langflow to 1.10.1 or later. The maintainers recommend 1.12.3 or later for the full hardening series.
- If you don't need the interpreter, set LANGFLOW_ALLOW_CUSTOM_COMPONENTS=false or LANGFLOW_BLOCK_CODE_INTERPRETER_COMPONENTS=true.
- Run Langflow as an unprivileged user with least-privilege database credentials. For untrusted code, the advisory suggests LANGFLOW_SANDBOX_BACKEND for microVM isolation.
pip show langflow | grep Version Sources
- criticalCVE-2026-115555 and 28 more: IBM's Langflow bulletin fixes 29 flaws up to 1.13.0, including 9.9 code execution, MCP tool calls that run custom code without admin rights and an unauthenticated public-flow RCE, upgrade to 1.13.1
- criticalCVE-2026-93680 and CVE-2026-110186: IBM fixes a 9.8 authentication bypass and unauthenticated code execution in Langflow up to 1.12.8, upgrade to 1.13.0
- criticalCVE-2026-104339 and 30 more: IBM's Langflow 1.12.4 and 1.12.5 bulletins fix unauthenticated RCE, three 9.9 code execution bugs, SSRF and path traversal
- criticalCVE-2026-104334 and CVE-2026-93674: IBM's Langflow OSS bulletin lists two unauthenticated code execution flaws plus a batch of sandbox, file access and credential issues, fixed in 1.12.3