CWE-1466 Improper Session Invalidation after Authentication Credential Change
- Type
- Variant
- 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 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.
Description
The product provides a capability for users to change their authentication credentials, such as username or password, but it does not properly invalidate any current authenticated sessions after this authentication credential change.
Common consequences
| Scope | Impact | Notes |
|---|---|---|
| Authentication | Gain Privileges or Assume Identity | When a user changes their credentials, such as a password, they expect that the old password can no longer be used. If an adversary had previously logged in with a password that was compromised, they establish a session that was authenticated with that password and it must be invalidated on password change to prevent future compromise of the account. |
Mitigations
Implementation
Ensure that user sessions are invalidated on the server-side after a change to their authentication credentials. It is important that the server-side handles all session invalidation 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
| Reference | What happened |
|---|---|
| CVE-2022-21652 | session not invalidated on password change |
| CVE-2025-24859 | session not invalidated on password change |