CWEweakness

CWE-1465 Improper Session Invalidation after User Logout

Official page ↗
Abstraction
Variant
Structure
Simple
Status
Incomplete
Languages
Not Language-Specific
CWE version
5.0

Description

The product provides a logout functionality or otherwise attempts to end an active session for a user, but it does not properly invalidate the session upon logout.

Common consequences

• Authentication: Gain Privileges or Assume Identity — Failure to invalidate a session on log out allows an adversary who has compromised the session more time to take action on the compromised session than is necessary.

Potential mitigations

• [Implementation] Ensure that user sessions are invalidated on the server-side after a client logs out or attempts to end their session. It is important that the server-side handles all session invalidation – including multiple tabs or windows, such as within a web browser - and does not rely on the client to remove or delete a session due to the possibility of adversaries capturing session identifiers or cookies for later reuse.

Observed examples

• CVE-2026-105690: Chain: auth-token was cleared on the browser after logout (CWE-602), but not revoked on the server-side (CWE-1465) • CVE-2019-12421: Chain: log out invalidated the session on the client side (CWE-602), but not the server side (CWE-1465)

Related

Observed example · CVE (2)

  • CVE-2026-105690 Penpot is an open-source design and prototyping platform. vulnerability
  • CVE-2019-12421 When using an authentication mechanism other than PKI, when the user clicks Log Out in NiFi versions 1.0.0 to 1.9.2, NiFi invalidates the… vulnerability

Child of · CWE (1)

  • CWE-1464 Improper Session Invalidation weakness