CVE-2026-55450: Langflow: Unauthenticated file upload leads to DoS (space exhaustion) and information leak
Langflow before 1.9.1 has an unauthenticated file upload endpoint, POST /api/v1/upload/{flow_id}. Anyone who can reach the server can fill its disk, and the response leaks the absolute cache path of the saved file. Upgrade to langflow 1.9.1, which requires login and flow ownership and enforces a size limit.
Published Jun 17, 2026 · Analysis Nov 16, 2026
What an attacker can do
The deprecated create_upload_file handler in langflow/api/v1/endpoints.py had no authentication dependency. It also did not validate flow_id, which any UUID satisfied. It passed the file to save_uploaded_file, which wrote it to the local cache under a folder named for the flow id, with no size limit.
An attacker needs only network access to Langflow, with no prior knowledge. Repeated uploads exhaust disk space and can take the service down. The JSON response also returns file_path with the absolute path of Langflow's cache directory on the server, which can help in chaining other attacks. The advisory describes the impact as denial of service and information disclosure. It does not claim code execution.
The example request is a curl POST of a file to /api/v1/upload/ followed by any UUID, on the default port 7860.
Who is affected
Affected: langflow before 1.9.1 on pip, wherever the server is reachable by untrusted users. Internet-exposed instances are the main concern.
Check the version:
pip show langflowTo check exposure, see whether the instance's /api/v1/upload/ route answers an unauthenticated request. Only test servers you own.
langflow
- Ecosystem
- PyPI
- Affected
- < 1.9.1
- Fixed in
- 1.9.1
- Check
pip show langflow
How to fix it
Upgrade to langflow 1.9.1 or later:
pip install -U langflow==1.9.1Pull request 12831 makes the endpoint use the get_flow dependency. It now needs an authenticated user and flow ownership, returns 404 for missing or cross-user flows, and enforces max_file_size_upload with HTTP 413. The response still returns the absolute path, but only to the flow's owner. The advisory lists no other workaround. Until you upgrade, keep Langflow off the public network.
How to tell if you were hit
Look in web or proxy logs for POST requests to /api/v1/upload/ from unauthenticated clients, especially many requests or large bodies. Check the Langflow cache directory, with one folder per flow id, for folders named after UUIDs that match no real flow, and for sudden disk growth.
If the disk filled, check for service failures at the same time. Remove the stray folders after you upgrade.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Unauthenticated users can upload any amount of data to the server without any limitations. No need for any prior knowledge, only network access to Langflow.
This can lead to space exhaustion on the server.
In adition, in the response, the absolute path of the uploaded file is reported to the attacker, which is an information leak that can assist in chaining other primitives.
Tested on commit 2d67402b1dbaefcbce85a244d4a6cd5e4bda1cfe
Details
Code is in langflow/api/v1/[endpoints.py](http://endpoints.py/):
@router.post(
"/upload/{flow_id}",
status_code=HTTPStatus.CREATED,
deprecated=True,
)
async def create_upload_file(
file: UploadFile,
flow_id: UUID,
) -> UploadFileResponse:
...As can be seen above, there is no authentication. There is not validation over flow_id as well, unlike other endpoints:
flow_id_str = str(flow_id)
file_path = await asyncio.to_thread(save_uploaded_file, file, folder_name=flow_id_str)Function save_uploaded_file saves the file to local file-system. Suggested fix:
- Add authentication to route.
- Only return relative path or filename.
PoC
PoC:
curl 'http://localhost:7860/api/v1/upload/<any_uuid>' -F "file=@<any_file>"Example:
# curl 'http://localhost:7860/api/v1/upload/11111111-1111-1111-1111-111111111111' -F "file=@/tmp/dummy.txt"
{"flowId":"11111111-1111-1111-1111-111111111111","file_path":"/Users/ori/Library/Caches/langflow/11111111-1111-1111-1111-111111111111/9d63c3b5b7623d1fa3dc7fd1547313b9546c6d0fbbb6773a420613b7a17995c8.txt"}Impact
- Space exhaustion on server that can lead to Denial-of-Service.
- Information leak - leakage of absolute path of langflow's cache directory in server.
Patches
Fixed in 1.9.1 via PR #12831. The deprecated POST /api/v1/upload/{flow_id} endpoint now uses the get_flow dependency, requiring an authenticated user and flow ownership (returns 404 for missing or cross-user flows), and enforces the max_file_size_upload limit (HTTP 413) — closing the unauthenticated upload and disk-exhaustion vectors. Upgrade to 1.9.1 or later.
Note: the response still returns the file's absolute path (file_path); after this fix it is only disclosed to the authenticated owner of the flow.
Ori Lahav Security Researcher @ Rubrik Inc.
Credited to vbCrLf, Jkavia, erichare, AntonioABLima, andifilhohub, Adam-Aghili.
Questions
- Does CVE-2026-55450 need a login?
Not before 1.9.1. The upload endpoint had no authentication, and any UUID worked as flow_id. From 1.9.1 the endpoint needs a logged-in user who owns the flow.
- Can it lead to remote code execution?
The advisory describes only disk exhaustion and a leaked cache path. It does not claim code execution, though the leaked path may help chain other flaws.
- Which version fixes it?
langflow 1.9.1, through PR 12831. It also enforces the max_file_size_upload limit and returns HTTP 413 for oversized files.
- Is it exploited in the wild?
The advisory does not say so, and the entry has no CISA KEV data. Its EPSS score is 0.0119.
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
