Langflow CORS misconfiguration enables Account Takeover and RCE
Critical8.8CVE-2025-34291 · Published Dec 6, 2025 · updated May 29, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| langflow PyPI | < 1.7.0 | 1.7.0 |
Details and references
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.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-346
- Also known as
- CVE-2025-34291, PYSEC-2025-78
- nvd.nist.gov/vuln/detail/CVE-2025-34291
- github.com/langflow-ai/langflow/pull/10139
- github.com/langflow-ai/langflow/pull/10696
- github.com/langflow-ai/langflow/pull/9240
- github.com/langflow-ai/langflow/pull/9441
- github.com/langflow-ai/langflow
- github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2025-78.yaml
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-34291
- www.crowdsec.net/vulntracking-report/cve-2025-34291
- www.obsidiansecurity.com/blog/cve-2025-34291-critical-account-takeover-and-rce-vulnerability-in-the-langflow-ai-agent-workflow-platform
- www.vulncheck.com/advisories/langflow-cors-misconfiguration-to-token-hijack-and-rce
More Langflow advisories
All Langflow| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Dec 192025 | Langflow vulnerable to Server-Side Request Forgery CVE-2025-68477High7.7fixed in 1.7.1 | High7.7 | 1.7.1 |
| Dec 192025 | External Control of File Name or Path in Langflow CVE-2025-68478High7.1fixed in 1.7.1 | High7.1 | 1.7.1 |
| Jan 2 | Langflow Missing Authentication on Critical API Endpoints CVE-2026-21445Highfixed in 1.7.1 | High | 1.7.1 |
| Jan 23 | Langflow affected by Remote Code Execution via validate_code() exec() CVE-2026-0770Highno fix yet | High | No fix yet |
| Feb 27 | Langflow has Remote Code Execution in CSV Agent CVE-2026-27966Critical9.8no fix yet | Critical9.8 | No fix yet |
| Mar 17 | Unauthenticated Remote Code Execution in Langflow via Public Flow Build Endpoint CVE-2026-33017Critical9.8fixed in 1.9.0 | Critical9.8 | 1.9.0 |