CVE-2026-48520: Langflow: Unauthenticated Shareable Playground arbitrary local or S3 file read
Langflow's Shareable Playground lets an unauthenticated visitor name any local or S3 file in the files field of a public flow run. Langflow reads the file and feeds it to the model as an image, so the contents can leak depending on the flow's LLM setup. Langflow before 1.10.0 is affected; upgrade to 1.10.0.
Published Jun 16, 2026 · Updated Jul 20, 2026 · Analysis Oct 26, 2026
What an attacker can do
A public flow runs through /api/v1/build_public_tmp for anyone with the link. The request body has a files field with a list of paths. Langflow does not limit those paths to files the visitor uploaded. The paths are read inside LCModelComponent._get_chat_result, when to_lc_message calls get_file_content_dicts and create_image_content_dict. The path can be any one the storage layer supports: a local file, or an S3 path where S3 storage is configured (CWE-73).
The file is passed to the LLM as an image. Whether the attacker gets the content back depends on the flow's configuration, such as the model, the prompt and whether the model's reply is returned to the visitor. That is why the advisory calls it a potential file read and why CVSS 3.1 rates complexity high (6.1).
The attacker needs the public flow ID from a share link and a way to guess or know the target path. A reachable file can be a config file, .env or key file on the server, or an object in an S3 bucket that the Langflow credentials can read. The impact is confidentiality only. Deployments that publish flows to the internet are the exposed group.
Who is affected
langflow on PyPI before 1.10.0. Only deployments with at least one flow shared through Shareable Playground (Public Flows) are exposed. Reading the content back depends on the LLM configuration of that flow. Check:
pip show langflowlangflow
- Ecosystem
- PyPI
- Affected
- < 1.10.0
- Fixed in
- 1.10.0
- Check
pip show langflow
How to fix it
Upgrade to langflow 1.10.0 or later:
pip install --upgrade "langflow>=1.10.0"The advisory does not describe the code change and lists no workaround. As a stopgap that I suggest, not from the advisory, disable sharing on flows you do not need public, and block /api/v1/build_public_tmp at your proxy. Limit the filesystem and S3 permissions of the Langflow process to what it needs.
How to tell if you were hit
Search proxy or application logs for POST requests to /api/v1/build_public_tmp whose body has a files list containing absolute paths, ../ sequences or s3:// URLs rather than Langflow's own upload names. Look for image-decoding errors in Langflow logs for non-image files, since the file is fed in as an image. On S3, check access logs for reads of unusual objects by the Langflow role around those requests.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The "Shareable Playground" (or "Public Flows" in code) contains a potential arbitrary file-read vulnerability, depending on the exact flow configuration used.
By making a flow public, public execution of the flow is allowed. The execution request can contain a list of files that gets read by Langflow and fed into the LLM. The files path can be any path supported by the storage - it can be either a local file or *S3 path* if supported by the local configuration
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. This request contains a files field that can contain a list of files. The files get read in LCModelComponent._get_chat_result in a call to to_lc_message. A detailed stacktrace:
...
File "/Users/ori/Work/research/langchain/langflow/src/backend/base/langflow/api/build.py", line 466, in build_vertices
vertex_build_response: VertexBuildResponse = await _build_vertex(vertex_id, graph, event_manager)
File "/Users/ori/Work/research/langchain/langflow/src/backend/base/langflow/api/build.py", line 324, in _build_vertex
vertex_build_result = await graph.build_vertex(
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/graph/graph/base.py", line 1563, in build_vertex
await vertex.build(
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/graph/vertex/base.py", line 770, in build
await step(user_id=user_id, event_manager=event_manager, **kwargs)
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/events/observability/lifecycle_events.py", line 95, in wrapper
result = await observed_method(self, *args, **kwargs)
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/graph/vertex/base.py", line 411, in _build
await self._build_results(
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/graph/vertex/base.py", line 640, in _build_results
result = await initialize.loading.get_instance_results(
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/interface/initialize/loading.py", line 76, in get_instance_results
return await build_component(params=custom_params, custom_component=custom_component)
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/interface/initialize/loading.py", line 299, in build_component
build_results, artifacts = await custom_component.build_results()
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/custom/custom_component/component.py", line 1136, in build_results
return await self._build_with_tracing()
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/custom/custom_component/component.py", line 1118, in _build_with_tracing
results, artifacts = await self._build_results()
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/custom/custom_component/component.py", line 1163, in _build_results
result = await self._get_output_result(output)
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/custom/custom_component/component.py", line 1238, in _get_output_result
result = await method() if inspect.iscoroutinefunction(method) else await asyncio.to_thread(method)
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/base/models/model.py", line 88, in text_response
result = await self.get_chat_result(
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/base/models/model.py", line 180, in get_chat_result
return await self._get_chat_result(
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/base/models/model.py", line 232, in _get_chat_result
messages.append(input_value.to_lc_message(self.name))
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/schema/message.py", line 184, in to_lc_message
file_contents = self.get_file_content_dicts(model_name)
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/schema/message.py", line 256, in get_file_content_dicts
content_dicts.append(create_image_content_dict(file, None, model_name))
File "/Users/ori/Work/research/langchain/langflow/src/lfx/src/lfx/utils/image.py", line 96, in create_image_content_dict
...This triggers Langflow to feed the file into the LLM as an Image. Reading the files back depends on the specific LLM configuration.
PoC
Reproduction:
- Create a new flow and add a Chat Input node to it
- Share the flow ("Shareable Playground")
- Access the public link with the browser developers tools open and execute the flow.
- Find the
/api/v1/build_public_tmproute and copy as cURL - Edit the
filesJSON field to point to any file.
Impact
Potential file read (local or S3) if shareable playground feature is used.
Ori Lahav Security Researcher @ Rubrik Inc.
Credited to vbCrLf, keval718, andifilhohub.
Questions
- Can an attacker always read the file contents?
No. The advisory says reading the file back depends on the specific LLM configuration of the flow. Langflow does read the file and pass it to the model.
- Does the attacker need to log in?
No. The Shareable Playground route runs for anyone who has the public flow's link.
- Which version fixes CVE-2026-48520?
Langflow 1.10.0. Earlier versions are affected.
- Is it exploited in the wild?
The sources do not report exploitation, and the entry has no CISA KEV data.
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 entriesCVE-2026-105697
Langflow: OS command injection (RCE) via arbitrary command in MCP stdio server configuration
critical9.9Oct 7, 2026CVE-2026-105698
Langflow : Cross-user flow access and vertex execution via deprecated /api/v1/build/{flow_id}/vertices endpoints
medium5.4Oct 7, 2026CVE-2026-105699
Langflow has Authenticated Cross-Project File Disclosure via Unscoped MCP Resource Handlers
high7.1Oct 7, 2026CVE-2026-105741
Langflow: IP Spoofing Bypass via `X-Forwarded-For` Allowing Remote Configuration Write
high7.1Oct 7, 2026CVE-2026-10561
Langflow: PythonREPLComponent executes unsandboxed Python code, enabling authenticated RCE and privilege escalation
critical9.9Oct 6, 2026GHSA-j8f7-x8jm-wmm4
Langflow: SSRF in URL-taking components (protection disabled by default / warn-only, not applied to RSS, SearXNG, Web Search, Home Assistant, Glean, Docling)
medium6.3Oct 6, 2026
