CWE-1463 Insufficient Session Timeout Value
- Type
- Base
- Status
- Incomplete
- Mapping
- Allowed
- Catalogue
- CWE 5.0, 28 Oct 2026
Should you map to this?
Allowed Fine to map a vulnerability to.
This CWE entry is at the Base 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. Do not map to this CWE in situations where the timeout value is set, but the session is incorrectly invalidated; use CWE-1464 instead.
Description
The product establishes an authenticated user session, but it does not properly set a timeout for the session. That is, the timeout is set to an excessively large value or is not set at all.
There are two types of session timeouts.
- Inactivity Timeout: The time window that a session will be expired if there is no user interaction within the session.
- Absolute Timeout: Regardless of activity, the total lifetime of a session before it is forcefully expired.
Common consequences
| Scope | Impact | Notes |
|---|---|---|
| Access Control, Integrity | Gain Privileges or Assume Identity | This weakness may improve the likely success of certain attacks. For example, an attacker may intercept a session ID, possibly via a network sniffer or Cross-site Scripting attack. Although short session expiration times do not help if a stolen token is immediately used, they will protect against ongoing replaying of the session ID. In another scenario, a user might access a web site from a shared computer (such as at a library, Internet cafe, or open work environment), but forget to close the pages before leaving. A long expiration could allow an attacker to use the browser's back button to access web pages previously accessed by the victim. |
Mitigations
Implementation
Ensure that user sessions have appropriate absolute timeouts set. The industry standard is between 4 and 8 hours for an absolute timeout.
Implementation
Ensure that user sessions have appropriate inactivity timeouts set. 2 to 5 minutes is recommended for high-value applications, and 15-30 minutes for low-risk applications.
Implementation
If using an authentication token for a user session, ensure that the token lifetime is configured based on the recommended best practices from the token provider. There are situations using authentication tokens such as a JWT (Java Web Token) in which the server-side does not handle session timeouts and trusts the values directly from the token. In this case, it is important that the timeout value is set correctly for the token that is granted.
Observed examples
| Reference | What happened |
|---|---|
| CVE-2026-107275 | Bad JWT expiration |
| CVE-2025-46344 | JavaScript SDK does not set an expiration time for JWE tokens related to a session |
| CVE-2024-8888 | Web interface for a power quality analyzer uses tokens without an expiration date |
| CVE-2024-35206 | network traffic analyzer for PROFINET networks does not expire sessions |
| CVE-2024-27782 | AI/ML monitor for IT operations allows re-use of old session tokens due to insufficient session expiration |
| CVE-2020-6291 | No absolute session expiration |