Improper Authentication in gogs - #VU170291
Published: November 25, 2026
Vulnerability details
The vulnerability allows a remote attacker to take over an account without knowing or changing its password or completing two-factor authentication.
The vulnerability exists due to improper authentication in the legacy and web API account activation handlers when they accept password-reset codes as activation credentials and create sessions for already active accounts without checking the second factor. A remote attacker can misuse a valid reset code obtained from the victim's email to gain an authenticated session as the victim.