Langflow Origin Validation Error Account Takeover and RCE
CVE-2025-34291 is a critical chained vulnerability affecting Langflow versions up to and including 1.6.9. The issue arises from an overly permissive CORS configuration that allows credentialed cross-origin requests from arbitrary origins (e.g., allow_origins='*' with allow_credentials=True), combined with a refresh token cookie configured as SameSite=None and a refresh endpoint that can be invoked cross-origin. In the reported exploit chain, a victim only needs to visit an attacker-controlled webpage while authenticated to Langflow. The malicious origin can then send cross-origin requests that include the victim’s refresh_token_lf cookie and successfully call the /api/v1/refresh endpoint to obtain fresh access_token and refresh_token pairs for the victim session. Those tokens can then be used to access authenticated Langflow functionality, including built-in code-execution features such as the code validation endpoint, resulting in account takeover and arbitrary code execution on the Langflow host. Supporting reporting also notes missing CSRF protections on the refresh flow as part of the chain.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No valid public exploits. Mallory filtered out 2 candidates as fakes, detection scripts, or README-only repos.
All candidate exploits were filtered out by Mallory's validation.
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.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
58 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A Langflow vulnerability that has been weaponized by the Iranian state-sponsored threat actor MuddyWater.
A critical account takeover and remote code execution vulnerability in Langflow that could be chained into full system compromise.
An origin validation error in Langflow that can allow arbitrary code execution and system compromise.
A critical origin validation error in Langflow caused by overly permissive CORS configuration and insecure refresh token cookie settings, enabling authenticated cross-origin requests, token theft, unauthorized API access, potential arbitrary code execution, and full system compromise.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.