Langflow CORS misconfiguration enables Account Takeover and RCE
CVE-2025-34291 · GHSA-577h-p2hh-v4mv · published 2025-12-06 · updated 2026-05-29
- Severity
- Critical
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- 93.2%
- Fixed in
- 1.7.0
Known exploited
CISA added this to its Known Exploited Vulnerabilities catalog on 2026-05-21; US federal agencies had until 2026-06-04 to act. CISA's required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Exploitation Exploited in the wild
- Automatable No
- Technical impact Total
- CISA SSVC
Langflow versions up to and including 1.6.9 contain a chained vulnerability that enables account takeover and remote code execution. An overly permissive CORS configuration (alloworigins='' with allowcredentials=True) combined with a refresh token cookie configured as SameSite=None allows a malicious webpage to perform cross-origin requests that include credentials and successfully call the refresh endpoint. An attacker-controlled origin can therefore obtain fresh accesstoken / refresh_token pairs for a victim session.
Upgrade langflow to 1.7.0 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.6.9 | 1.7.0 |
- 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 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
- CriticalLangflow: OS command injection (RCE) via arbitrary command in MCP stdio server configurationlangflow, 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.