CVE-2025-34291: Langflow Origin Validation Error Vulnerability

Published Dec 5, 2025
·
Updated

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.

Other sources

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 (alloworigins='' with allowcredentials=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 accesstoken / refreshtoken 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.

MITRE

Affected Software

3 affected components
pypi/langflow<=1.6.9
Langflow Langflow<=1.6.9
Langflow Langflow

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Langflow to a version that resolves this vulnerability.

    Fixed in 1.6.9
  2. Configuration

    Correct the overly permissive CORS configuration that allows attacker-controlled origins by removing the wildcard origin usage (the issue is allow_origins='*' together with allow_credentials=True).

    Langflow CORS configuration allow_origins = not '*' when allow_credentials=True
  3. Configuration

    Change the refresh token cookie setting so it is not configured as SameSite=None, since SameSite=None combined with the permissive CORS/credentials enables cross-origin credentialed refresh requests.

    Langflow refresh token cookie SameSite = not None
  4. Compensating control

    Apply mitigations per vendor instructions or follow applicable BOD 22-01 guidance for cloud services.

  5. Compensating control

    If mitigations are unavailable, discontinue use of the product.

Event History

Dec 5, 2025
CVE Published
via MITRE·10:27 PM
Data Sourced
via MITRE·10:27 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
May 21, 2026
Known Exploited
via CISA·12:00 AM
Data Sourced
via CISA·12:00 AM
RemedyDescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-34291?

CVE-2025-34291 has a critical severity level due to its potential for account takeover and remote code execution.

2

How do I mitigate CVE-2025-34291?

To mitigate CVE-2025-34291, you should update Langflow to a version above 1.6.9 and review your CORS configuration to ensure it is not overly permissive.

3

What versions of Langflow are affected by CVE-2025-34291?

All versions of Langflow up to and including 1.6.9 are affected by CVE-2025-34291.

4

What types of attacks can CVE-2025-34291 facilitate?

CVE-2025-34291 can facilitate account takeover attacks and remote code execution exploits.

5

Can CVE-2025-34291 be exploited without authentication?

Yes, the overly permissive CORS configuration allows CVE-2025-34291 to be exploited without requiring authentication.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203