CVE-2025-34291

HIGH KEV NUCLEI

Langflow <= 1.6.9 - Account Takeover and Remote Code Execution via CORS Misconfiguration

Title source: llm
STIX 2.1

Exploitation Summary

CVE-2025-34291 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added May 21, 2026. EIP tracks 2 public exploits from researchers including ridhinva, amnnrth. A Nuclei detection template is also available.

AI-analyzed exploit summary The repository contains a Python-based scanner for detecting potential exposure to CVE-2025-34291, a CORS misconfiguration vulnerability in Langflow. It checks for accessible endpoints but does not exploit the vulnerability.

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.

Exploits (2)

github SCANNER
by ridhinva · pythonpoc
https://github.com/ridhinva/CVE-2025-34291-Langflow-Scanner

The repository contains a Python-based scanner for detecting potential exposure to CVE-2025-34291, a CORS misconfiguration vulnerability in Langflow. It checks for accessible endpoints but does not exploit the vulnerability.

Classification
Scanner 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: Langflow versions before 1.3.5
No auth needed
Prerequisites: network access to target endpoints
devstral-2 · analyzed May 23, 2026 Full analysis →
nomisec SCANNER
by amnnrth · poc
https://github.com/amnnrth/CVE-2025-34291_cors_security_scanner

This repository contains a Python-based scanner for detecting CORS misconfigurations, including wildcard policies, origin reflection, and credentialed CORS issues. It does not exploit CVE-2025-34291 but scans for potential vulnerabilities.

Classification
Scanner 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Web applications with CORS misconfigurations
No auth needed
Prerequisites: Target URL(s) to scan
devstral-2 · analyzed May 18, 2026 Full analysis →

Nuclei Templates (1)

Langflow AI <= 1.6.9 - CORS Misconfiguration
CRITICALVERIFIEDby 686f6c61
Shodan: html:"Langflow"
FOFA: body="Langflow"

Scores

CVSS v3 8.8
EPSS 0.2515
EPSS Percentile 97.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation active
Automatable no
Technical Impact total

Details

CISA KEV 2026-05-21
VulnCheck KEV 2026-01-23
ENISA EUVD EUVD-2025-201507
CWE
CWE-346
Status published
Products (3)
langflow/langflow < 1.6.9
Langflow/Langflow < 1.6.9
pypi/langflow 0 - 1.7.0PyPI
Published Dec 05, 2025
KEV Added May 21, 2026
Tracked Since Feb 18, 2026