CVE-2025-34291: Langflow CORS Origin Validation Account Takeover and RCE
- Vendor
- Langflow
CVE-2025-34291 is an origin validation error in Langflow versions through 1.6.9. The vulnerability chain combines an overly permissive credentialed CORS configuration, a refresh-token cookie configured with SameSite=None, and absent CSRF protections on the token-refresh operation. A malicious origin can induce a victim’s browser to submit credentialed cross-origin refresh requests and receive newly issued access and refresh tokens for the victim session. The attacker can then use the stolen authenticated session to access Langflow functionality capable of executing user-supplied code, resulting in remote code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation enables takeover of the authenticated victim’s Langflow account and persistent authenticated access through newly issued refresh tokens. The attacker can invoke authenticated code-execution functionality to execute arbitrary code in the Langflow host runtime, potentially causing full system compromise. Compromise may also expose credentials, API keys, database passwords, service tokens, and other secrets stored by Langflow, enabling follow-on compromise of connected cloud, SaaS, database, and internal services.
Mitigation
If you can’t patch tonight, do this now.
Until upgraded, restrict credentialed CORS access to a strict allowlist of trusted origins; do not permit wildcard origins for credentialed requests. Configure sensitive authentication cookies as SameSite=Lax or SameSite=Strict where operationally feasible, implement CSRF defenses for token-refresh operations, and enforce strict server-side Origin validation. Restrict access to Langflow instances and monitor for anomalous cross-origin requests, token refreshes, and use of code-execution features.
Remediation
Patch, then assume compromise.
Upgrade Langflow to version 1.7.0 or later. The fixed release restricts credentialed CORS requests to explicitly configured origins and changes the default refresh-cookie policy to SameSite=Lax. Following suspected exposure, invalidate active sessions and rotate Langflow-stored API keys, tokens, passwords, and other secrets.
Exploits
No validated public exploits yet. Hidden: 3 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-34291 exploited in the wild?
- Yes. As of Sep 25, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 21, 2026.
- Is there a public exploit for CVE-2025-34291?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2025-34291.
- Is there a patch for CVE-2025-34291?
- Upgrade Langflow to version 1.7.0 or later. The fixed release restricts credentialed CORS requests to explicitly configured origins and changes the default refresh-cookie policy to SameSite=Lax.
- What products are affected by CVE-2025-34291?
- Langflow.
- How severe is CVE-2025-34291?
- CVE-2025-34291 has a CVSS v4 score of 9.4 (Critical) and an EPSS score of 14.5% (97th percentile) as of Sep 25, 2026.
Recent activity
67 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.