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

- Severity: Critical 9.4 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: yes. In CISA's catalogue since 2026-05-21. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Likelihood of exploitation in the next 30 days (EPSS): 14.5%, higher than 97% of CVEs (2026-11-28)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-05T22:27:26.438Z
- Modified: 2026-10-15T21:10:00.327Z
- Also known as: GHSA-577h-p2hh-v4mv, PYSEC-2025-78
- Weaknesses: CWE-346
- SSVC (CISA-ADP): exploitation active, automatable no, technical impact total
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- Langflow Langflow: up to 1.6.9
- langflow (PyPI): before 1.7.0

## Every score

- VulnCheck: CVSS:4.0 9.4 Critical `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`
- GitHub: CVSS:3.1 8.8 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.obsidiansecurity.com/blog/cve-2025-34291-critical-account-takeover-and-rce-vulnerability-in-the-langflow-ai-agent-workflow-platform> (exploit, evidence, mitigation, technical-description, third-party-advisory, web)
- <https://github.com/langflow-ai/langflow> (kev, package, product)
- <https://www.vulncheck.com/advisories/langflow-cors-misconfiguration-to-token-hijack-and-rce> (advisory, third-party-advisory, web)
- <https://www.crowdsec.net/vulntracking-report/cve-2025-34291> (third-party-advisory, web)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-34291> (government-resource, us-government-resource, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-34291> (advisory, kev)
- <https://github.com/langflow-ai/langflow/pull/10139> (web)
- <https://github.com/langflow-ai/langflow/pull/10696> (web)
- <https://github.com/langflow-ai/langflow/pull/9240> (web)
- <https://github.com/langflow-ai/langflow/pull/9441> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2025-78.yaml> (web)
- <https://github.com/advisories/GHSA-577h-p2hh-v4mv> (advisory)
- <https://github.com/langflow-ai/langflow/releases/tag/v1.9.3> (kev)
- <https://github.com/langflow-ai/langflow/issues/11465#event-25774545848> (kev)

## Sources

- CVE List: [CVE-2025-34291](https://www.cve.org/CVERecord?id=CVE-2025-34291), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-577h-p2hh-v4mv](https://github.com/advisories/GHSA-577h-p2hh-v4mv), CC-BY-4.0, modified 2026-05-29
- NVD: [CVE-2025-34291](https://nvd.nist.gov/vuln/detail/CVE-2025-34291), Public domain, modified 2026-10-15
- PyPA Advisory Database: [PYSEC-2025-78](https://osv.dev/vulnerability/PYSEC-2025-78), CC-BY-4.0, modified 2026-06-10
- CISA KEV: [CVE-2025-34291](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-34291), CC0-1.0, modified 2026-05-21

---

Page: https://cve.day/CVE-2025-34291 · Whole record: https://cve.day/CVE-2025-34291.json · Rebuilt by cve.day 2026-11-25T22:59:08.355Z
