CVE-2025-57760 is a high-severity improper privilege management vulnerability in langflow (pip), affecting versions <= 1.5.0. It is fixed in 1.5.1, 0.5.1.
This vulnerability was discovered by researchers at Check Point. We are sharing this report as part of a responsible disclosure process and are happy to assist in validation and remediation if needed. Summary A privilege escalation vulnerability exists in Langflow containers where an authenticated user with RCE access can invoke the internal CLI command langflow superuser to create a new administrative user. This results in full superuser access, even if the user initially registered through the UI as a regular (non-admin) account. Details Langflow's Docker image includes a CLI binary at /app/.venv/bin/langflow that exposes sensitive commands, including: langflow superuser This command allows creation of a new superuser without checking whether one already exists. When combined with code execution (e.g., via the authenticated /api/v1/validate/code endpoint), a low-privileged user can execute: /app/.venv/bin/langflow superuser inside the container, and elevate themselves to full superuser privileges. This effectively bypasses frontend role enforcement and backend user integrity, leading to full compromise of the Langflow application. PoC Start container with LANGFLOWENABLEAUTH set to True. Visit http://localhost:7860 and sign up. (Your user will not be marked is_superuser.) <img width="1311" height="627" alt="image" src="https://github.com/user-attachments/assets/9b75bdc3-31ea-48c0-9e84-c2b168f404b3" /> Exploit /api/v1/validate/code to get reverse shell Send an authenticated POST request: Inside reverse shell, create superuser: <img width="731" height="217" alt="image" src="https://github.com/user-attachments/assets/cb8497c6-0d61-414e-afe2-69bbbaf55cbc" /> Log into UI as new superuser: <img width="1262" height="532" alt="image" src="https://github.com/user-attachments/assets/1f0a713d-3d61-4aa4-a25b-58f4b58c061b" /> Impact Privilege escalation to superuser, complete takeover of the Langflow instance Access to all user data, flows, stored credentials, and configuration Credential leakage, attacker can extract third-party API keys Exposure of environment variables (inside docker container) Ability to run additional Langflow instances via langflow run inside the container, which may lead to resource exhaustion (CPU, memory) and service degradation. Full user management, superuser can delete other users, reset their passwords
The application assigns, modifies, tracks, or checks privileges incorrectly, allowing a user to gain elevated access. Typical impact: privilege escalation beyond the intended level.
CVE-2025-57760 has a CVSS score of 8.8 (High). The vector is network-reachable, low privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.
A fixed version is available (1.5.1, 0.5.1). Upgrading removes the vulnerable code path.
pip
langflow (<= 1.5.0)langflow-base (<= 0.5.0)langflow → 1.5.1 (pip)langflow-base → 0.5.1 (pip)Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.
Kodem's runtime-powered SCA identifies whether CVE-2025-57760 is reachable in your applications. Explore open-source security for your team.
See if CVE-2025-57760 is reachable in your applications. Get a demo
Upgrade the following packages to resolve this vulnerability:
langflow to 1.5.1 or laterlangflow-base to 0.5.1 or laterKodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.
CVE-2025-57760 is a high-severity improper privilege management vulnerability in langflow (pip), affecting versions <= 1.5.0. It is fixed in 1.5.1, 0.5.1. The application assigns, modifies, tracks, or checks privileges incorrectly, allowing a user to gain elevated access.
CVE-2025-57760 has a CVSS score of 8.8 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
langflow (pip) (versions <= 1.5.0)langflow-base (pip) (versions <= 0.5.0)Yes. CVE-2025-57760 is fixed in 1.5.1, 0.5.1. Upgrade to this version or later.
Whether CVE-2025-57760 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
langflow to 1.5.1 or laterlangflow-base to 0.5.1 or later