---
id: CVE-2025-34291
title: >-
  Langflow versions up to and including 1.6.9 contain a chained vulnerability
  that enables account takeover and remote code execution
summary: >-
  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 …
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-346
vendor: langflow
product: langflow
affected:
  - langflow <= 1.6.9
published: '2025-12-05'
updated: '2026-07-14'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-34291'
references:
  - url: 'https://github.com/langflow-ai/langflow'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.obsidiansecurity.com/blog/cve-2025-34291-critical-account-takeover-and-rce-vulnerability-in-the-langflow-ai-agent-workflow-platform
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/langflow-cors-misconfiguration-to-token-hijack-and-rce
    label: disclosure@vulncheck.com
  - url: >-
      https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-34291
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://www.crowdsec.net/vulntracking-report/cve-2025-34291'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - kev
  - in-the-wild
  - exploit-available
epss: 0.92808
epssPercentile: 0.99827
kev: true
kevDateAdded: '2026-05-21'
kevDueDate: '2026-06-04'
kevRansomware: false
exploited: true
ingestedAt: '2026-07-15T13:44:03.544Z'
exploits:
  github: 2
  githubRepos:
    - 'https://github.com/amnnrth/CVE-2025-34291_cors_security_scanner'
    - 'https://github.com/ridhinva/langflow-cors-scanner'
  nuclei:
    - CVE-2025-34291
  checkedAt: '2026-09-25T08:20:45.158Z'
exploitAvailable: true
---

## Overview

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

- `langflow <= 1.6.9`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
