CVE-2025-34291 – Critical CORS Misconfiguration & Token Hijack Leading to RCE in Langflow
Key takeaways
- Severity: Critical (CVSS 9.4 v4.0, 8.8 v3.1)
- Impact: Account takeover & remote code execution via CORS + refresh‑token misuse.
- Affected: Langflow ≤ 1.6.9 (default permissive CORS settings).
- Status: Actively exploited; listed in CISA KEV (added 2026‑05‑21, patch by 2026‑06‑04 for federal agencies).
- Action: Apply vendor‑provided patch or harden CORS & cookie settings immediately.
Overview
On May 21 2026, the U.S. Cybersecurity and Infrastructure Security Agency (CISA) added CVE-2025-34291 to its Known Exploited Vulnerabilities (KEV) catalog, flagging it as a critical issue that must be mitigated by June 4 2026 for federal systems. The flaw resides in Langflow, an open‑source AI‑agent workflow platform, and enables a chained attack that leads to full system compromise.
The vulnerability stems from a misconfigured CORS policy (allow_origins='*' with allow_credentials=True) combined with a refresh‑token cookie set with SameSite=None. This combination allows a malicious web page hosted on any origin to make authenticated cross‑origin requests to the token‑refresh endpoint, steal fresh access‑token/refresh‑token pairs, and then invoke Langflow’s built‑in code‑execution API to run arbitrary commands on the server.