Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-34291: Langflow CORS Origin Validation Account Takeover and RCE

Published Dec 5, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.4Critical · v4
EPSS14.5%97th percentile
CISA KEVYesAdded May 21, 2026
In the wildActivePer CISA KEV
Vendor
Langflow
IdentifiersCVE-2025-34291CWE-346 · Origin Validation Error

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No validated public exploits yet. Hidden: 3 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
Exposure surface

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.

VendorProductType
LangflowLangflowapplication
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence8Every report linking this CVE to a named adversary.
Associated malware2Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity47Community discussion across Reddit, Mastodon, and other social sources.