Langflow: Logout button does not clear session
What fixes it
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Summary
The logout button does not clear the session. The previous user stays logged in unless another user explicitly logs in.
Details
Not in auto login mode. Hosted on localhost. access_token_lf remains present in both Local Storage and Cookies. refresh_token_lf remains present in Cookies.
Root cause: the /logout endpoint deleted the authentication cookies without matching the original httponly/samesite/secure/domain parameters, so the browser kept them; additionally the frontend did not clear the auth cookies on logout.
LANGFLOW_AUTO_LOGIN: "False" LANGFLOW_SUPERUSER: <set> LANGFLOW_SUPERUSER_PASSWORD: <set> LANGFLOW_SECRET_KEY: <set> LANGFLOW_NEW_USER_IS_ACTIVE: "False" LANGFLOW_ENABLE_SUPERUSER_CLI: "False"
PoC
Click Logout. Hit refresh to return to previous screen.
Impact
Users on shared computers may falsely believe they have terminated their session.
Patches
Fixed in 1.7.0 (PRs #10527 and #10528). The logout endpoint now deletes the auth cookies using the same parameters they were created with, and the frontend clears the auth cookies on logout. Upgrade to 1.7.0 or later.
Text from GitHub Advisory Database
Affected versions 53
- langflow, pip< 1.7.0GitHub
- langflowaffected: < 1.7.0CVE List
- langflow, PyPIfrom first release, fixed in 1.7.0OSV
- langflow, PyPI0.0.31OSV
- langflow, PyPI0.0.32OSV
- langflow, PyPI0.0.33OSV
- langflow, PyPI0.0.40OSV
- langflow, PyPI0.0.44OSV
- langflow, PyPI0.0.45OSV
- langflow, PyPI0.0.46OSV
- langflow, PyPI0.0.52OSV
- langflow, PyPI0.0.53OSV
- langflow, PyPI0.0.54OSV
- langflow, PyPI0.0.55OSV
- langflow, PyPI0.0.56OSV
- langflow, PyPI0.0.57OSV
- langflow, PyPI0.0.58OSV
- langflow, PyPI0.0.61OSV
- langflow, PyPI0.0.62OSV
- langflow, PyPI0.0.63OSV
- langflow, PyPI0.0.64OSV
- langflow, PyPI0.0.65OSV
- langflow, PyPI0.0.66OSV
- langflow, PyPI0.0.67OSV
- langflow, PyPI0.0.68OSV
- langflow, PyPI0.0.69OSV
- langflow, PyPI0.0.70OSV
- langflow, PyPI0.0.71OSV
- langflow, PyPI0.0.72OSV
- langflow, PyPI0.0.73OSV
- langflow, PyPI0.0.74OSV
- langflow, PyPI0.0.75OSV
- langflow, PyPI0.0.76OSV
- langflow, PyPI0.0.78OSV
- langflow, PyPI0.0.79OSV
- langflow, PyPI0.0.80OSV
- langflow, PyPI0.0.81OSV
- langflow, PyPI0.0.83OSV
- langflow, PyPI0.0.84OSV
- langflow, PyPI0.0.85OSV
- langflow, PyPI0.0.86OSV
- langflow, PyPI0.0.87OSV
- langflow, PyPI0.0.88OSV
- langflow, PyPI0.0.89OSV
- langflow, PyPI0.1.0OSV
- langflow, PyPI0.1.2OSV
- langflow, PyPI0.1.3OSV
- langflow, PyPI0.1.4OSV
- langflow, PyPI0.1.5OSV
- langflow, PyPI0.1.6OSV
- langflow, PyPI0.1.7OSV
- langflow, PyPI0.2.0OSV
- langflow, PyPI0.2.1OSV
References 6
- github.com/langflow-ai/langflow/security/advisories/GHSA-7hw8-6q6r-4276Advisoryvia CVE List
- github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2026-222.yamlAdvisoryvia GitHub
- github.com/advisories/GHSA-7hw8-6q6r-4276Advisoryvia GitHub
- github.com/langflow-ai/langflow/pull/10527Referencevia CVE List
- github.com/langflow-ai/langflow/pull/10528Referencevia CVE List
- nvd.nist.gov/vuln/detail/CVE-2026-55423Referencevia GitHub