Gitea's OAuth2 token endpoint verified the signature and grant of a token submitted with the `refresh_token` grant type, but not that the token was a refresh token. An unexpired access token for the same OAuth2 application and grant could be exchanged for a new access token and refresh token. Whoever holds such an access token could keep access beyond the token's original lifetime.
CVE-2026-101023
CVSS base score
9.1 (v3.1)
Severity
CRITICAL
Attack vector
Network
Weakness
CWE-287
Last modified
October 13, 2026
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected products
gitea gitea
References
- blog.gitea.com Release Notes
- github.com Patch
- github.com Patch
- github.com Release Notes
- github.com Vendor Advisory