---
title: "CWE-1465: Improper Session Invalidation after User Logout"
url: https://radicalnotion.ai/cwe/cwe-1465
type: cwe
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."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1465: Improper Session Invalidation after User Logout

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 0
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

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

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Applicable platforms

**Technologies:** Client Server (Undetermined), Web Based (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| 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 | Description |
| --- | --- |
| 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 weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-1464](https://radicalnotion.ai/cwe/cwe-1464) | Improper Session Invalidation |

## Frequently asked questions

### What is CWE-1465?

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.

### How do you prevent CWE-1465?

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.

### What are the consequences of CWE-1465?

Exploiting CWE-1465 can lead to: Gain Privileges or Assume Identity.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/1465.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-1465). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
