Overly permissive cross-domain whitelist in Langflow - CVE-2025-34291
Published: May 26, 2026
Langflow
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper access control in the CORS configuration and refresh token handling when processing cross-origin requests with credentials. A remote attacker can host a malicious webpage that triggers credentialed requests to obtain fresh session tokens and use authenticated code-execution functionality to execute arbitrary code.
User interaction is required to visit an attacker-controlled webpage while authenticated to the application.
How to mitigate CVE-2025-34291
Sources
- https://www.obsidiansecurity.com/blog/cve-2025-34291-critical-account-takeover-and-rce-vulnerability-in-the-langflow-ai-agent-workflow-platform
- https://www.vulncheck.com/advisories/langflow-cors-misconfiguration-to-token-hijack-and-rce
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-34291
- https://www.crowdsec.net/vulntracking-report/cve-2025-34291