CVE-2025-34291: Langflow Origin Validation Error Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-11 15:49 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by VulnCheck, published 2025-12-05).
Weakness: CWE-346 Origin Validation Error
How it can be exploited
Exploitable over the network with low attack complexity with no special attack requirements needing no privileges and a user must take an action. Impact: confidentiality high, integrity high, availability high. 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
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: no. Technical impact: total.
- On CISA KEV since
- 2026-05-21
- US federal deadline
- 2026-06-04
- Ransomware use
- Not known
Public exploit evidence (Exploit Observer)
Exploit Observer found 1 Nuclei template, 7 code repositories and 2 research write-ups naming this CVE.
Code repositories that name a CVE are often scanners, copies or fakes, and some are malware. Read the code before running anything.
See all 18 references on Exploit Observer
Live scores
- EPSS
- 0.932
very likely to be attacked soon - VEDAS
- 0.982
strong exploit evidence - On CISA KEV
- Yes, since 2026-05-21
Thin horizontal line: the “likely exploited” threshold (EPSS 0.10, VEDAS 0.5). Shaded “no data” areas are periods when cve-scores did not publish. The vertical line is the day CISA added it to its exploited list.
VEDAS flagged this bug about 130 days before CISA confirmed attacks.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Langflow | up to and including 1.6.9 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
How to fix it
CISA 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.
Vendor guidance:
- https://github.com/langflow-ai/langflow
- https://github.com/langflow-ai/langflow/releases/tag/v1.9.3
- https://github.com/langflow-ai/langflow/issues/11465#event-25774545848
- https://nvd.nist.gov/vuln/detail/CVE-2025-34291
How to detect it
Nuclei template (active check)
Langflow - Remote Code Execution
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.
Name and description quoted from the template, written by VEDAS.
The template sends 2 requests (GET /, OPTIONS /api/v1/refresh); it decides using status, word matchers. Severity in the template: critical. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2025-34291.yamlShow the template (58 lines)
id: CVE-2025-34291
info:
name: "Langflow - Remote Code Execution"
author: vedas-arpsyndicate
severity: critical
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.
reference:
- https://www.exploit.observer/?keyword=CVE-2025-34291&match=exact
- https://subdomain.center/?engine=ammonites&keyword=langflow&match=exact
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
cvss-score: 9.4
cve-id: CVE-2025-34291
cwe-id: CWE-942
metadata:
verified: false
tags: cve,cve2025,langflow,cors,misconfig,vuln,oss,vkev,kev
flow: http(1) && http(2)
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
part: body
words:
- "Langflow"
internal: true
- raw:
- |
OPTIONS /api/v1/refresh HTTP/1.1
Host: {{Hostname}}
Origin: https://scanme.sh
Access-Control-Request-Method: POST
Access-Control-Request-Headers: content-type
matchers-condition: and
matchers:
- type: word
part: header
words:
- "Access-Control-Allow-Origin: https://scanme.sh"
- "Access-Control-Allow-Credentials: true"
condition: and
- type: status
part: header
status:
- 200
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2025-34291 Langflow - Remote Code Execution. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2025-34291 Langflow - Remote Code Execution"; flow:established,to_server; http.uri; content:"refresh"; nocase; fast_pattern; classtype:web-application-attack; reference:cve,CVE-2025-34291; reference:url,https://www.exploit.observer/?keyword=CVE-2025-34291&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=langflow&match=exact; sid:1011502; rev:1;)
CVE-2025-34291.rules on GitHub
References
Exploit code
- https://www.obsidiansecurity.com/blog/cve-2025-34291-critical-account-takeover-and-rce-vulnerability-in-the-langflow-ai-agent-workflow-platform (technical-description, exploit)
Technical analysis and advisories
- https://www.vulncheck.com/advisories/langflow-cors-misconfiguration-to-token-hijack-and-rce (third-party-advisory)
- https://www.crowdsec.net/vulntracking-report/cve-2025-34291 (third-party-advisory)
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-34291 (government-resource)
Other references
- https://github.com/langflow-ai/langflow (product)
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.