Skip to content

Sessions Does Not Invalidated on Password Change or Logout

Low
gantoine published GHSA-fg2h-rgjw-76r3 Jan 9, 2026

Package

No package listed

Affected versions

<=4.4.1

Patched versions

>=4.5.0

Description

Summary

Session tokens remain valid after password change or logout violating security best practices and enables persistent session hijacking.

Affected Version: 4.4.1 (latest Docker image at time of testing - November 2025)


Details

  • Password change doesn't invalidate existing sessions
  • Logout only clears client-side cookie, doesn't revoke token server-side
  • JWT tokens remain valid for 2 weeks regardless of password changes or logout

PoC

Token persists after logout

  1. Login and capture session token
  2. Logout
  3. Use old token, still works

Test 2: Token persists after password change

  1. Login and capture session token
  2. Change password
  3. Notice that the session token isn't revoked - It keeps using the same old token

Impact

Attack Scenario:

  1. Attacker hijacks user's session (somehow)
  2. Victim notices breach → changes his password
  3. Attacker still has access via old token because tokens remain valid despite user defensive actions (until it expires after 2 weeks)

Mitigation

Implement token invalidation/revocation process → Invalidate tokens on logout or password change


References

Severity

Low

CVE ID

No known CVE

Weaknesses

Insufficient Session Expiration

According to WASC, Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization. Learn more on MITRE.

Credits