The Langflow vulnerability tracked as CVE-2026-115550 scores 9.9 on CVSS, and the short version is that Langflow’s Python cage didn’t hold. Up to version 1.13.0, anyone with an account on a Langflow server could get past the check that was supposed to screen every piece of submitted Python and run code as the server process. IBM, which now ships the project as Langflow OSS, published the CVE records on December 3, 2026. The fix has been sitting in version 1.13.1 since early November. If you haven’t upgraded since then, do it today.
Langflow is a visual builder for AI agents and RAG pipelines. You drag components onto a canvas, wire them up and get an API out the other end. That convenience is exactly why these servers tend to hold keys for OpenAI, vector databases and internal systems. Escaping the code check on such a box isn’t one bug among many. It’s the shortest path to every secret on it.
Langflow vulnerability: 29 CVEs in one bulletin
CVE-2026-115550 has plenty of company. The IBM security bulletin lists 29 vulnerabilities in Langflow OSS 1.0.0 through 1.13.0: two critical at 9.9, eleven high and 16 medium. Ten of the descriptions mention arbitrary code or command execution. Four of them explain what went wrong.
CVE-2026-115550 (9.9) is an escape from the in-process sandbox through an AST filter bypass. AST means abstract syntax tree, the structure Python builds from source code. Langflow walks that tree looking for forbidden constructs before handing the code to exec() inside its own process. CVE-2026-115555 (also 9.9) covers importing arbitrary Python modules. CVE-2026-122088 (8.8) deals with expressions evaluated at runtime, and CVE-2026-120069 (8.8) with a denylist that could be fooled by treating code as data.
Both critical entries carry the vector AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H: reachable over the network, low complexity, an ordinary user account, nobody else has to click anything. The S:C (scope changed) is what pushes the score from 8.8 to 9.9. The attack doesn’t stay inside Langflow, it lands on the host underneath.
One caveat before going further. IBM doesn’t map CVE numbers to commits. The mapping below is our reading of the descriptions against the code diff between the v1.13.0 and v1.13.1 tags. It fits well, but nobody has officially confirmed it.
What changed between 1.13.0 and 1.13.1
The Python Interpreter component runs code typed in by a user or produced by an agent. Since a fix in June 2026, Langflow has run that code with trimmed builtins (no __import__, open or eval), scanned the syntax tree for dunder chains such as ().__class__.__subclasses__() and passed modules in only through a proxy that refuses attributes like sys, os and codecs.
The hole was the Global Imports field, where you list the modules your code may use. It defaults to math. Version 1.13.0 imported whatever you put there, and a source comment called that an “explicit (trusted) admin choice”. The trouble is that the field lives in the flow, and every user edits their own flows. With pull request #15945 (commit e533bf9233, October 25), Langflow only accepts math, json and statistics unless a sandbox is configured. Anything else raises a ValueError before the module is even loaded, because importing it already runs code on the host. That lines up with the description of CVE-2026-115555.
The second batch targets the Langflow Assistant, which writes components with a language model. Its checker in agentic/helpers/code_security.py rejected import inspect but not the modules that import inspect themselves and hand it on as an attribute. Commits #16040 and #16048 (October 28 and 29) close those re-exports and ban inspect, linecache and fileinput outright. Commit #16055 (October 30) also blocks pandas.eval plus the eval and query methods on DataFrames, which evaluate strings the syntax tree never gets to see. That reads very much like CVE-2026-115550 and CVE-2026-122088.
Reproduced: Global Imports in 1.13.0 vs. 1.13.1
We loaded python_repl_security.py from both tags and rebuilt the run_python_repl() flow without a server. That isn’t a full Langflow test, since authentication and flow storage are missing. But this is the part that decides whether code gets through.
# run_python_repl() rebuilt without the server, once with
# python_repl_security.py from v1.13.0 and once from v1.13.1
m.validate_code_safety(code) # AST check
g = {"__builtins__": m.safe_builtins()} # trimmed builtins
for mod in global_imports.split(","): # "Global Imports" field
name, proxy = m.import_allowed_module(mod.strip())
g[name] = proxy
exec(code, g)
Results on Python 3.13.5:
Case v1.13.0 v1.13.1
math + __import__("os") blocked blocked
math + ().__class__... blocked blocked
json + json.codecs.sys.modules blocked blocked
"math,posix" + posix.getcwd() executed blocked
"math,subprocess" + check_output executed blocked
statistics.median([3,1,4,1,5]) 3 3
The well-known tricks fail in both versions. The builtins are gone, the dunder chain trips the AST check and the json.codecs.sys detour hits the proxy. The real escape needs no trick at all. Put subprocess or posix into Global Imports on 1.13.0 and you have command execution with perfectly boring code. The AST check sees a harmless subprocess.check_output(...), because it inspects syntax and has no idea which module sits behind a name.
Why Python denylists always leak
The second pattern shows up in the standard library alone. Plenty of modules import other modules and leave them reachable as attributes:
import traceback, dataclasses, linecache, inspect
# A filter that only looks for "import linecache" sees nothing here:
traceback.linecache is linecache # True
dataclasses.inspect is inspect # True
traceback.linecache.getlines("/etc/hostname") # reads the file
A filter that matches import names would need the full import graph of every module it allows. With 290 modules in the Python 3.13 standard library before you even add pandas and numpy, that’s not a solvable problem but a race. The commit log proves the point. After 1.13.1 came further hardening for ZIP and frozen import loaders (#16282), execution sinks in libraries (#16289), import rules through re-exports (#16530) and “unsafe object resolvers” in generated components (#16572, shipped in 1.13.4). The maintainers say it in the source themselves: “defense-in-depth, NOT a guaranteed sandbox”. Anthropic’s Siren test taught the same lesson from the agent side. Real isolation happens at the operating system level, not inside the interpreter.
Which version and which settings
IBM names 1.13.1 as the minimum. We’d go straight to 1.13.5 (on PyPI and Docker Hub since December 1), since it carries the later hardening as well. Teams stuck on the 1.12 line can use 1.12.9, which backports the 1.13.1 fixes.
# Check the installed version
python -c "import importlib.metadata as m; print(m.version('langflow'))"
# pip/uv: move to the current 1.13 line
uv pip install --upgrade "langflow==1.13.5"
# Docker
docker pull langflowai/langflow:1.13.5
# .env for multi-user servers
LANGFLOW_AUTO_LOGIN=false
LANGFLOW_CUSTOM_COMPONENT_ADMIN_ONLY=true
LANGFLOW_SANDBOX_BACKEND=exec-sandbox # needs langflow[sandbox], QEMU 8+, KVM
From 1.13.2 on, one default changes and it can catch operators off guard. LANGFLOW_CUSTOM_COMPONENT_ADMIN_ONLY becomes true, including on existing installs. Regular users can no longer create or run custom components, and code-execution components like the Python Interpreter are off-limits to them. Flows with custom source need an administrator to approve them as trusted templates first. That’s the right call for security, but it can quietly break agents that used to run under regular accounts. Check which flows are affected before you upgrade.
If you need more modules in the Python Interpreter, pandas for example, the Python Interpreter documentation describes the intended route. LANGFLOW_SANDBOX_BACKEND=exec-sandbox runs each execution in a QEMU microVM with a read-only root filesystem and no network by default. It requires Python 3.12 or later, QEMU 8 and hardware virtualization, which rules out many cloud VMs without nested virtualization. Mind the boundary: the microVM only covers the Python Interpreter and the legacy Python REPL component. Custom components still run inside the server process.
Our take: who needs to move now
The upgrade is most urgent for multi-user Langflow servers, for teams running Langflow as an internal agent platform and for anyone who hands a Python interpreter to an agent as a tool. One compromised or curious account is enough there. If you only run Langflow locally on your own machine, the risk is mostly yours to carry, but upgrade anyway: the bulletin also contains a flaw that needs no login at all (CVE-2026-120068, public flow build).
The next step is simple. Check the version, move to 1.13.5, confirm LANGFLOW_AUTO_LOGIN and then go through the server’s environment variables asking which API keys an escape could have read. If other people had accounts on that server, rotate those keys. And if you build agent tools yourself, say an MCP server in Python, keep the takeaway: code execution belongs in a container or VM, and your packages belong in a locked-down dependency chain with uv. A filter in front of exec() slows attackers down. It doesn’t stop them.




