Insufficient Session Expiration in gogs - CVE-2026-52809
Published: June 19, 2026
gogs
Detailed vulnerability description
The vulnerability allows a remote attacker to take over a victim account.
The vulnerability exists due to insufficient session expiration in password-reset token generation and verification in internal/userx/userx.go, internal/email/email.go, and internal/route/user/auth.go when handling password-reset requests and validating reset tokens. A remote attacker can use an intercepted password-reset token after the configured reset window has expired to take over a victim account.
User interaction is required because the victim must initiate a password-reset request, and exploitation is possible when the reset lifetime is configured shorter than the activation lifetime.