GITEA.DEV · CVE-2026-128359 · Package
FIX → 28.4.0
When Gitea acts as an OAuth2 or OIDC provider, its token endpoint does not check whether the user is still active. A user who has been deactivated or prohibited from login can keep refreshing tokens and exchange old authorization codes, so relying applications keep them signed in.
first public Nov 15, 2026 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Teams that run Gitea as an OAuth2 or OIDC identity provider for other applications are exposed, because disabling a user in Gitea does not revoke their tokens. Gitea used only as a plain git host, or with sign-in delegated to another provider, is not affected by this token path.
Not affected if default-config, gitea-not-oauth-provider
Who cares gitea, oauth2, oidc, self-hosted
gitea --version and compare it with the affected range.Upgrade to 28.4.0
28.4.0 or later.Summary When Gitea is an OAuth2/OIDC provider, the token endpoint does not check the user state. After an admin deactivates a user or sets "prohibit login", the user can still refresh tokens forever and exchange old authorization codes. Relying parties keep the user signed in.
Details
routers/web/auth/oauth2_provider.go:568-633 (refresh) and :635-722 (code exchange) never load or check the user. Grants are not revoked when a user is disabled.Impact Disabling an account in Gitea does not end that person's access to the applications that use Gitea for sign-in.
Suggested fix
Check IsActive and ProhibitLogin in the refresh, code exchange and introspection paths. Revoke grants when a user is disabled.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.