# CVE-2025-34291: Langflow \<= 1.6.9 CORS Misconfiguration to Token Hijack & RCE

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.4
- **CVSS:** 9.4 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Passive; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Yes: in CISA KEV since 2026-05-21; federal due date 2026-06-04
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 14.54% (percentile 97, 2026-11-26)
- **CWE:** CWE-346
- **Aliases:** GHSA-577h-p2hh-v4mv, PYSEC-2025-78
- **Published:** 2025-12-05T22:27:26.438Z
- **Modified:** 2026-10-15T21:10:00.327Z

## Who should check

- Projects that depend on PyPI package langflow (\< 1.7.0)
- Anyone running Langflow \<= 1.6.9

## 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.

## Affected and fixed versions

- PyPI `langflow`: affected \< 1.7.0; fixed 1.7.0 (osv)
- Langflow: \<= 1.6.9 (cvelist)

## Mitigation

- Upgrade langflow to 1.7.0 or later.

## Timeline

- 2025-12-05: Published
- 2026-05-21: Added to CISA KEV (exploited in the wild)
- 2026-06-04: CISA remediation due date for US federal agencies
- 2026-10-15: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-34291. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-34291.md
Affected: langflow < 1.7.0
Fixed in: 1.7.0

Steps:
1. Search this machine and project for langflow (PyPI), Langflow: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-34291 being exploited?

Yes. CISA lists CVE-2025-34291 in its Known Exploited Vulnerabilities catalog since 2026-05-21, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 14.54% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-34291?

Critical: CVSS 9.4 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-34291?

langflow \< 1.7.0.

### Is there a fix for CVE-2025-34291?

Yes. Fixed in 1.7.0. Upgrade langflow to 1.7.0 or later.

### How do I check if I'm affected by CVE-2025-34291?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.vulncheck.com/advisories/langflow-cors-misconfiguration-to-token-hijack-and-rce>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-34291>
- vendor: <https://github.com/advisories/GHSA-577h-p2hh-v4mv>
- patch: <https://github.com/langflow-ai/langflow/pull/10139>
- patch: <https://github.com/langflow-ai/langflow/pull/10696>
- patch: <https://github.com/langflow-ai/langflow/pull/9240>
- patch: <https://github.com/langflow-ai/langflow/pull/9441>
- exploit: <https://www.obsidiansecurity.com/blog/cve-2025-34291-critical-account-takeover-and-rce-vulnerability-in-the-langflow-ai-agent-workflow-platform>
- other: <https://github.com/langflow-ai/langflow>
- other: <https://www.crowdsec.net/vulntracking-report/cve-2025-34291>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-34291>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2025-78.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-34291>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-577h-p2hh-v4mv> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2025-78> (license: <https://creativecommons.org/licenses/by/4.0/>)
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2025-34291> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-34291>
