{"id":"CVE-2026-101023","published":"2026-10-06T22:16:59.737","lastModified":"2026-10-07T21:17:06.730","description":"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.","cvssScore":9.1,"cvssSeverity":"CRITICAL","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","cwes":["CWE-287"],"vendors":[],"products":[],"references":[{"url":"https://blog.gitea.com/release-of-28.1.0/","tags":[]},{"url":"https://github.com/go-gitea/gitea/pull/39501","tags":[]},{"url":"https://github.com/go-gitea/gitea/pull/39507","tags":[]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.1.0","tags":[]},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-469m-x4mw-38r3","tags":[]}],"exploitRefs":[{"url":"https://github.com/go-gitea/gitea/pull/39501","tags":[]},{"url":"https://github.com/go-gitea/gitea/pull/39507","tags":[]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v28.1.0","tags":[]},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-469m-x4mw-38r3","tags":[]}],"hasPoc":true,"ai":{"summary":"The flaw allows an attacker to exchange an unexpired access token for a new access token and refresh token, effectively extending the token's lifetime. This matters because it can lead to unauthorized access and prolonged system compromise.","exploitability":"Exploitation is moderately hard as it requires an attacker to have an unexpired access token for the same OAuth2 application. Precondition is the presence of an unexpired access token.","blast_radius":"If exploited, the impact is significant as it could allow unauthorized access to the system for an extended period, potentially leading to data theft or other malicious activities.","remediation":"Disable the OAuth2 `refresh_token` grant type or upgrade to the latest version of Gitea that addresses this vulnerability, specifically version 1.17.0 or later.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["auth-bypass","oauth","token-exchange","web"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-10-08T08:41:01.819Z"}}