unauth

← fix library

CRITICAL Langflow: Langflow CVE-2025-34291 — session hijack to RCE via CORS misconfiguration

Why it matters

A malicious webpage can hijack a logged-in Langflow user's session and then run code on your server, because of a permissive CORS setup plus an unprotected refresh endpoint. Actively exploited. Works even when the victim did nothing but visit a link.

Fix it — 3 steps

  1. Upgrade past 1.6.9 and set CORS allow_origins to your actual domain, never '*' with credentials enabled.
  2. Put the UI behind an authenticating proxy or VPN so drive-by attacks have no session to steal.
  3. Tell your users to log out and rotate API keys if you ran a vulnerable version: sessions may have been hijacked.

Verify it’s fixed

curl -s http://YOUR_SERVER_IP:7860/api/v1/version  # must be > 1.6.9

References

Not sure if your stack is exposed?

Run the free check — 30 seconds, safe read-only probes.

Scan your stack