Langflow Vulnerable to Privilege Escalation via CLI Superuser Creation (Post-RCE)
CVE-2025-57760 · GHSA-4gv9-mp8m-592r · published 2025-08-25 · updated 2025-12-18
- Severity
- High
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- 0.57%
- Fixed in
- 1.5.1
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
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
Upgrade langflow to 1.5.1 or later, and langflow-base to 0.5.1 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| langflow | PyPI | <= 1.5.0 | 1.5.1 |
| langflow-base | PyPI | <= 0.5.0 | 0.5.1 |
- CriticalMarimo: Pre-Auth Remote Code Execution via Terminal WebSocket Authentication BypassmarimoExploited
- HighLiteLLM: MCP Authentication Bypass via OAuth2 Passthrough FallbacklitellmExploited
- CriticalTodoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server@doist/todoist-mcp
- Critical[mcp-atlassian] Authentication bypass in HTTP transport: AtlassianOpaqueTokenVerifier accepts any non-empty tokenmcp-atlassian
- CriticalMySQL MCP Server: Missing Origin/Host Validation in SSE Transport Enables Unauthenticated SQL Execution (DNS Rebinding / Direct Exposure)mysql-mcp-server
- CriticalCross-IdP account takeover via email-only SSO matchingflowise
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.