Common Weakness Enumeration

CWE-1465

Weakness Allowed

Improper Session Invalidation after User Logout

Abstraction: Variant · Status: Incomplete

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.

Mapping guidance

This CWE entry is at the Variant level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.

Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.

Relationships and members
ChildOf: CWE-1464 · View CWE-1000
Modes of introduction
Architecture and Design
Implementation
Notes

Maintenance · CWE 5.0 · 2026-10-28

This entry was created in CWE 5.0 to address known gaps in CWE coverage. It is not as complete as other new entries that were published in recent years. The CWE Team plans to work with the CWE community to make this entry more complete in later 5.x releases.

Content history
Submission: CWE Content Team · MITRE · 2026-10-23 · CWE 5.0
Contribution: Michal Biesiada · 2023-02-20 · CWE 5.0

Suggested content related to a user not logged out from all tabs when logging out of a single tab. The submission inspired this CWE and added additional content.

0 vulnerabilities reference this CWE, most recent first.

No vulnerabilities reference this CWE.

Mitigation
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.

No CAPEC attack patterns related to this CWE.