Skip to content

fix: Session renewal in hook not rotating token#100

Merged
m-t-a97 merged 2 commits into
mainfrom
fix/session-renewal-vulnerability
Jul 21, 2026
Merged

fix: Session renewal in hook not rotating token#100
m-t-a97 merged 2 commits into
mainfrom
fix/session-renewal-vulnerability

Conversation

@m-t-a97

@m-t-a97 m-t-a97 commented Jul 21, 2026

Copy link
Copy Markdown
Member

This PR fixes a vulnerability with session cookies whereby a renewal wouldn't rotate the session token before updating/replacing the user's existing session cookie. Now if a session is nearing it's expiry, the existing session will be deleted, a new session will be created and the new session's token will replace the user's session cookie thereby improving security greatly.

@m-t-a97 m-t-a97 self-assigned this Jul 21, 2026
@m-t-a97
m-t-a97 merged commit 4f646a8 into main Jul 21, 2026
6 checks passed
@m-t-a97
m-t-a97 deleted the fix/session-renewal-vulnerability branch July 21, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant