CVE-2025-34291Langflow
Account Takeover and Remote Code Execution in Langflow via Insecure CORS Config…
Critical 9.4 KEV No auth needed
- Priority
- 71
- CVSS 4.0
- 9.4
- EPSS
- —
- Auth required
- No
- In KEV since
- May 21, 2026
- CISA deadline
- Jun 4, 2026
- Ransomware use
- Unknown
- Published
- Dec 5, 2025
- Updated
- Oct 15, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-346
- SSVC (CISA)
- Exploitation: active · Automatable: no · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Langflow versions up to 1.6.9 contain a chained vulnerability combining overly permissive CORS configuration (allow_origins='*' with allow_credentials=True) and refresh token cookies set as SameSite=None. An attacker can perform cross-origin requests with credentials, obtain valid access tokens, and access code-execution functionality, achieving full system compromise. CISA confirmed active exploitation.
AI-generated summary (Claude) based on NVD and CISA data. Not reviewed yet: check the details in the vendor advisory.
Show the original NVD text
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.
Exploitation confirmed by CISA
Langflow contains an origin validation error vulnerability in which an overly permissive CORS configuration 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. This could allow the attacker to execute arbitrary code and achieve full system compromise via obtained tokens that permit access to authenticated endpoints.
Action required by CISA: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
What to do
Patch available · fixed versions: 1.7.0
Update Langflow to version 1.7.0 or later. If immediate update is not possible, restrict access to the application and review active session logs.
Vendor advisory · www.obsidiansecurity.com ↗
AI-generated from public data; not reviewed.
- Apply the vendor's security update for Langflow.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was June 4, 2026.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | langflow |
< 1.7.0 |
1.7.0 |
pip install "langflow>=1.7.0" |
| PyPI | langflow |
< 1.7.0 |
1.7.0 |
pip install "langflow>=1.7.0" |
Per OSV / GitHub Advisories (GHSA-577h-p2hh-v4mv, PYSEC-2025-78). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| langflow | langflow | ≤ 1.6.9 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- www.obsidiansecurity.com Exploit Mitigation Third Party Advisory
- www.vulncheck.com Third Party Advisory
- www.cisa.gov US Government Resource
- www.crowdsec.net Third Party Advisory