Langflow
Langflow <= 1.6.9 CORS Misconfiguration to Token Hijack & RCE
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 versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- <= 1.6.9
Mitigation
Upgrade langflow to 1.7.0 or later.
Timeline
Days relative to CVE publicationPublic PoC known, its date not yet looked up; added to CISA KEV 167 days after publication.
PoC repositories
Found on GitHub.2 pending
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| amnnrth/CVE-2025-34291_cors_security_scanner | 18 May 2026 +164 d | 0 | Pending · mkdir /quarantine/amnnrth__CVE-2025-34291_cors_security_scanner-33c0cc93bf2d: permission denied |
| ridhinva/langflow-cors-scanner | 22 May 2026 +168 d | 0 | Pending · mkdir /quarantine/ridhinva__langflow-cors-scanner-0580da5264a6: permission denied |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | https://www.obsidiansecurity.com/blog/cve-2025-34291-critical-account-takeover-and-rce-vulnerability-in-the-langflow-ai-agent-workflow-platform | unknown | 14 Nov 2026 |
| nuclei template | nuclei template: Langflow AI <= 1.6.9 - CORS Misconfiguration | unknown | 14 Nov 2026 |