{"id":"CVE-2025-34291","aliases":["CVE-2025-34291","GHSA-577h-p2hh-v4mv","PYSEC-2025-78"],"related":[],"kind":"vulnerability","state":"published","title":"Langflow <= 1.6.9 CORS Misconfiguration to Token Hijack & RCE","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"},{"lang":"en","text":"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.","source":"kev"}],"published":"2025-12-05T22:27:26.438Z","modified":"2026-10-15T21:10:00.327Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":9.4,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":9.4,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-346"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.6.9","status":"affected"}],"vendor":"Langflow","product":"Langflow","repo":"https://github.com/langflow-ai/langflow","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.0"}],"ecosystem":"PyPI","package":"langflow","purl":"pkg:pypi/langflow","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.6.9"}],"vendor":"langflow","product":"langflow","cpe":"cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.0"}],"ecosystem":"PyPI","package":"langflow","purl":"pkg:pypi/langflow","source":"pysec"},{"ranges":[],"vendor":"Langflow","product":"Langflow","source":"kev"}],"references":[{"url":"https://www.obsidiansecurity.com/blog/cve-2025-34291-critical-account-takeover-and-rce-vulnerability-in-the-langflow-ai-agent-workflow-platform","tags":["evidence","exploit","mitigation","technical-description","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/langflow-ai/langflow","tags":["kev","package","product"],"sources":["cvelist","ghsa","nvd","pysec","kev"]},{"url":"https://www.vulncheck.com/advisories/langflow-cors-misconfiguration-to-token-hijack-and-rce","tags":["advisory","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.crowdsec.net/vulntracking-report/cve-2025-34291","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-34291","tags":["government-resource","us-government-resource","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-34291","tags":["advisory","kev"],"sources":["ghsa","kev"]},{"url":"https://github.com/langflow-ai/langflow/pull/10139","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/langflow-ai/langflow/pull/10696","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/langflow-ai/langflow/pull/9240","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/langflow-ai/langflow/pull/9441","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2025-78.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-577h-p2hh-v4mv","tags":["advisory"],"sources":["pysec"]},{"url":"https://github.com/langflow-ai/langflow/releases/tag/v1.9.3","tags":["kev"],"sources":["kev"]},{"url":"https://github.com/langflow-ai/langflow/issues/11465#event-25774545848","tags":["kev"],"sources":["kev"]}],"credits":["Fenix Qiao (aka 13ph03nix) from Obsidian Security","Shuyang Wang from Obsidian Security"],"assigner":"VulnCheck","kev":{"dateAdded":"2026-05-21","dueDate":"2026-06-04","name":"Langflow Origin Validation Error Vulnerability","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","ransomware":false,"notes":"This vulnerability could affect an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: 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"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"no","technicalImpact":"total","date":"2026-05-21T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-34291","url":"https://www.cve.org/CVERecord?id=CVE-2025-34291","licence":"CVE Terms of Use","modified":"2026-10-08T15:21:21.340Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-577h-p2hh-v4mv","url":"https://github.com/advisories/GHSA-577h-p2hh-v4mv","licence":"CC-BY-4.0","modified":"2026-05-29T21:00:16.278Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-34291","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-34291","licence":"Public domain","modified":"2026-10-15T21:10:00.327Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-78","url":"https://osv.dev/vulnerability/PYSEC-2025-78","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:58.704Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2025-34291","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-34291","licence":"CC0-1.0","modified":"2026-05-21T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:59:08.355Z","epss":{"score":0.14544,"percentile":0.97297,"date":"2026-11-28T12:00:21.000Z"}}