AgentbeamBeta
AI agent vulnerability · Langflow

CVE-2026-48519: Langflow: Unauthenticated RCE in Shareable Playgrounds

criticalCVSS 3.1 9.6GHSA-v5ff-9q35-q26f

Langflow 1.9.1 and earlier lets anyone who can reach a shared flow run arbitrary Python on the server. The Shareable Playground route /api/v1/build_public_tmp accepts node code from the request body and executes it. Any deployment with a shared playground is exposed. Upgrade langflow to 1.9.2.

Published Jun 16, 2026 · Updated Jul 20, 2026 · Analysis Nov 24, 2026

What an attacker can do

Langflow's Shareable Playground (called Public Flows in the code) lets unauthenticated visitors run a flow through a link. To do that, the route /api/v1/build_public_tmp builds the flow graph from a JSON payload that the caller sends. That payload includes each node's component source at data.nodes[X].data.node.template.code.value. The server does not use the stored flow's code. It instantiates whatever Python the request carries (CWE-94), and the class body runs while the component is created.

The researcher's proof of concept shows the steps. Share a flow with a Chat Input node, open the public link, copy the build request from the browser tools, replace the code value with Python that runs a command, and send it with curl using any client_id cookie and the public flow id. The reported test created a file in /tmp.

The attacker needs only the public flow link and network access. The score lists no privileges and user interaction as required. The code runs as the Langflow process, so it can read the API keys, model provider credentials and database contents the deployment holds, and move into the host or cluster. The advisory states that merely sharing a flow exposes the deployment.

Who is affected

Affected: the langflow package on PyPI, version 1.9.1 and earlier. The first patched version is 1.9.2. Exposure needs at least one flow shared through Shareable Playground, since the vulnerable route runs public flows.

Check your version:

pip show langflow

For Docker, check the image tag. Review which flows are shared in the Langflow UI.

langflow

Ecosystem
PyPI
Affected
<= 1.9.1
Fixed in
1.9.2
Check
pip show langflow

How to fix it

Upgrade langflow to 1.9.2 or later:

pip install --upgrade "langflow>=1.9.2"

The advisory lists no workaround and does not describe the code change. If you cannot upgrade right away, the sources do not confirm that unsharing flows helps. Until you upgrade, treat any instance with a shared playground as exposed, keep it off the public internet, and rotate the secrets stored on it if you suspect misuse.

How to tell if you were hit

Look in web server or proxy logs for POST requests to /api/v1/build_public_tmp from unknown clients, especially with large JSON bodies or a client_id cookie that looks arbitrary. Check the Langflow process for unexpected child processes, new files under /tmp, outbound connections and changes to its database.

Compare shared flows against what you expect. The advisory's example payload writes a file under /tmp, so look for files with odd names there.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The "Shareable Playground" (or "Public Flows" in code) contains a critical RCE vulnerability. Simply sharing a flow exposes the deployment to RCE risk by authenticated users.

Tested on commit 2d67402b1dbaefcbce85a244d4a6cd5e4bda1cfe

Details

Shareable Playground feature works by enabling the execution of workflows by unauthenticated users, by accessing a link. Specifically, it enables the route /api/v1/build_public_tmp to execute any public flow, given a public flow ID. When the route executes the flow, it allows for providing arbitrary custom Python code as the nodes code, inside the JSON payload!

The vulnerable field is data.nodes[X].data.node.template.code.value. See PoC for an example.

PoC

Reproduction:

  1. Create a new flow and add a Chat Input node to it
  2. Share the flow ("Shareable Playground")
  3. Access the public link with the browser developers tools open and execute the flow.
  4. Find the /api/v1/build_public_tmp route and copy as cURL
  5. Edit the data.nodes[X].data.node.template.code.value JSON field with any python code and run the cURL command.

Example PoC (replace flow ID with the correct one), and download test_with_python.json:

curl 'http://localhost:7860/api/v1/build_public_tmp/<flow-id>/flow?start_component_id=ChatInput-syEJp&log_builds=false&event_delivery=streaming' \
  -H 'Content-Type: application/json' \
  -b 'client_id=anything' \
  --data-raw "$(cat test_with_python.json)"

Search for touch /tmp/pwned in the test_with_python.json and edit for any other code.

The stacktrace for the code executed is:

...
  File "/Users/ori/Work/research/langchain/langflow/src/backend/base/langflow/api/build.py", line 495, in generate_flow_events
    ids, vertices_to_run, graph = await build_graph_and_get_order()
  File "/Users/ori/Work/research/langchain/langflow/src/backend/base/langflow/api/build.py", line 234, in build_graph_and_get_order
    graph = await create_graph(fresh_session, flow_id_str, flow_name)
  File "/Users/ori/Work/research/langchain/langflow/src/backend/base/langflow/api/build.py", line 298, in create_graph
    return await build_graph_from_data(
  File "/Users/ori/Work/research/langchain/langflow/src/backend/base/langflow/api/utils/core.py", line 192, in build_graph_from_data
    graph = Graph.from_payload(payload, str_flow_id, flow_name, kwargs.get("user_id"))
  File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/graph/graph/base.py", line 1153, in from_payload
    graph.add_nodes_and_edges(vertices, edges)
  File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/graph/graph/base.py", line 270, in add_nodes_and_edges
    self.initialize()
  File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/graph/graph/base.py", line 512, in initialize
    self._build_graph()
  File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/graph/graph/base.py", line 1305, in _build_graph
    self._instantiate_components_in_vertices()
  File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/graph/graph/base.py", line 1347, in _instantiate_components_in_vertices
    vertex.instantiate_component(self.user_id)
  File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/graph/vertex/base.py", line 382, in instantiate_component
    self.custom_component, _ = initialize.loading.instantiate_class(
  File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/interface/initialize/loading.py", line 45, in instantiate_class
    custom_component: CustomComponent | Component = class_object(
  File "<string>", line 59, in __init__

Impact

Unauthenticated RCE on any deployment with a shareable playground.

Ori Lahav Security Researcher @ Rubrik Inc.

Credited to vbCrLf, Jkavia, andifilhohub, AntonioABLima.

Questions

Is Langflow 1.9.1 affected by CVE-2026-48519?

Yes. Versions through 1.9.1 are affected, and 1.9.2 is the patched version. Check with pip show langflow.

Does CVE-2026-48519 need authentication?

No login is needed. The attacker needs only the link of a flow shared through Shareable Playground and network access. The CVSS vector lists user interaction as required.

Is there a workaround for CVE-2026-48519?

The advisory lists none. Upgrade to 1.9.2. The sources do not say whether unsharing flows is enough, so do not rely on it alone.

Is CVE-2026-48519 exploited in the wild?

The sources do not say so. The advisory includes a proof of concept, and the entry has no CISA catalog data. Its EPSS score is low, about 0.8 percent.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Langflow vulnerabilities

All Langflow entries