CVE-2025-34291
JSON

9.4criticalExploited

Langflow <= 1.6.9 CORS Misconfiguration to Token Hijack & RCE

Severity
9.4critical CVSS:4.0 by VulnCheck
Exploit likelihood
14.5% (higher than 97% of CVEs)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-577h-p2hh-v4mvPYSEC-2025-78

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

Product or packageVersionsReported by
Langflow Langflowup to 1.6.9CVE List, NVD, CISA KEV
langflow (PyPI)before 1.7.0GitHub Advisory Database, PyPA Advisory Database

All scores

VulnCheck9.4critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
GitHub8.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-346

SSVC (CISA-ADP): exploitation active, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Langflow versiones hasta e incluyendo 1.6.9 contienen una vulnerabilidad encadenada que permite la toma de control de cuentas y la ejecución remota de código. Una configuración CORS excesivamente permisiva (allow_origins='*' con allow_credentials=True) combinada con una cookie de token de actualización configurada como SameSite=None permite a una página web maliciosa realizar solicitudes de origen cruzado que incluyen credenciales y llamar exitosamente al endpoint de actualización. Un origen controlado por el atacante puede, por lo tanto, obtener nuevos pares de access_token / refresh_token para una sesión de la víctima. Los tokens obtenidos permiten el acceso a endpoints autenticados - incluyendo funcionalidad de ejecución de código incorporada - permitiendo al atacante ejecutar código arbitrario y lograr un compromiso total del sistema.

CISA KEV

Langflow contains an origin validation error vulnerability in which an overly permissive CORS configuration 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. This could allow the attacker to execute arbitrary code and achieve full system compromise via obtained tokens that permit access to authenticated endpoints.

References

https://www.obsidiansecurity.com/blog/cve-2025-34291-critical-account-takeover-and-rce-vulnerability-in-the-langflow-ai-agent-workflow-platformevidence, exploit, mitigation, technical-description, third-party-advisory, web
https://github.com/langflow-ai/langflowkev, package, product
https://www.vulncheck.com/advisories/langflow-cors-misconfiguration-to-token-hijack-and-rceadvisory, third-party-advisory, web
https://www.crowdsec.net/vulntracking-report/cve-2025-34291third-party-advisory, web
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-34291government-resource, us-government-resource, web
https://nvd.nist.gov/vuln/detail/CVE-2025-34291advisory, kev
https://github.com/langflow-ai/langflow/pull/10139web
https://github.com/langflow-ai/langflow/pull/10696web
https://github.com/langflow-ai/langflow/pull/9240web
https://github.com/langflow-ai/langflow/pull/9441web
https://github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2025-78.yamlweb
https://github.com/advisories/GHSA-577h-p2hh-v4mvadvisory

Sources

SourceRecordLicence
CVE ListCVE-2025-34291 changed 2026-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-577h-p2hh-v4mv changed 2026-05-29CC-BY-4.0
NVDCVE-2025-34291 changed 2026-10-15Public domain
PyPA Advisory DatabasePYSEC-2025-78 changed 2026-06-10CC-BY-4.0
CISA KEVCVE-2025-34291 changed 2026-05-21CC0-1.0