OAuth2 Token Mismanagement in Gitea by Gitea Team
CVE-2026-128359
What is CVE-2026-128359?
The Gitea platform, when functioning as an OAuth2 or OpenID Connect provider, exhibited a serious flaw in its token endpoint. This vulnerability allowed the system to fail in recognizing the state of a user account when an administrator deactivated it or restricted its login capabilities. As a result, previously issued refresh tokens and unused authorization codes could still be utilized to generate new access tokens, thereby maintaining user sessions despite the account's inactive status. This oversight meant that applications relying on Gitea for authentication continued to grant access to users whose accounts were not valid. Subsequent updates have addressed this issue, ensuring that the token endpoint now properly rejects requests from deactivated accounts, thereby enhancing the overall security posture of the platform.
Affected Version(s)
Gitea 0 < 28.4.0
