GHSA-258c-965c-p3hc: Daptin's Session Management Vulnerability Leads to Insufficient Session Expiration After Password Change
A session invalidation vulnerability exists in daptin’s authentication system where JSON Web Tokens (JWTs) remain fully valid after a user changes their password. The JWT validation middleware (CheckJWT) only verifies token signature, expiry, issuer, and signing algorithm — it does not check whether the token was issued before the most recent password change. The password update code path hashes the new password but never calls InvalidateAuthCacheForEmail() and never revokes or blacklists existing tokens. This effectively negating password rotation as an incident response control.
References
Code Behaviors & Features
Detect and mitigate GHSA-258c-965c-p3hc with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →