CVE-2025-34291
Description
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.
Weakness
- CWE-346: Origin Validation Error
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Langflow Origin Validation Error Vulnerability |
|---|---|
| Vendor / product | Langflow / Langflow |
| Date added | 2026-05-21 |
| Federal remediation due date | 2026-06-04 |
| Required action | Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-05-21 |
Timeline
- 2025-12-05Published by the CNA22:27 UTC
- 2025-12-06GitHub advisory published (GHSA-577h-p2hh-v4mv)1 day after publication
- 2026-05-21Added to the CISA KEV catalog167 days after publication
- 2026-05-21CISA SSVC decision recorded167 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2025-34291: Langflow AI <= 1.6.9 - CORS Misconfiguration
GitHub advisory GHSA-577h-p2hh-v4mv, affected packages:
| Ecosystem | Package | Vulnerable range | Patched |
|---|---|---|---|
| PyPI | langflow | < 1.7.0 | 1.7.0 |
Affected products
| Vendor | Product |
|---|---|
| langflow | langflow |
References
- https://www.obsidiansecurity.com/blog/cve-2025-34291-critical-account-takeover-and-rce-vulnerability-in-the-langflow-ai-agent-workflow-platform
- https://github.com/langflow-ai/langflow
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-34291
- https://www.crowdsec.net/vulntracking-report/cve-2025-34291
- https://www.vulncheck.com/advisories/langflow-cors-misconfiguration-to-token-hijack-and-rce
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2025-34291'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2025-34291'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2025-34291'curl 'https://api.contrastcyber.com/cve_products/CVE-2025-34291'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2025-34291'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).