CVE-2025-34291 in langflow
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
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 (allow_origins='*' with allow_credentials=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 access_token / refresh_token pairs for a victim session. Obtained tokens permit access to authenticated endpoints — including built-in code-execution functionality — allowing the attacker to execute arbitrary code and achieve full system compromise.
Affected software: langflow
Scores
- CVSS: 9.4 (critical)
- EPSS: 93.66% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2026-05-21
- Published: 2025-12-05
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade Langflow to fix CORS refresh-token account takeover (CVE-2025-34291)
Patch or upgrade. Langflow up to 1.6.9 allows any origin with credentials, so a malicious page can steal a user's session via the refresh cookie and then run code. Upgrading Langflow and restricting CORS origins closes it.
Applies to: Langflow 1.6.9 and earlier.
- Check the Langflow version (`langflow --version` or image tag).
- Upgrade to a current Langflow release (the CORS fix landed after 1.6.9; see the Langflow release notes, for example v1.9.3).
- Set LANGFLOW_CORS_ORIGINS to your own Langflow URL only.
- Invalidate existing sessions and rotate API keys stored in Langflow.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.