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.
Published: 2026-10-06
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Access token misuse resulting in prolonged authenticated sessions
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is an OAuth2 token endpoint flaw that accepts any unexpired access token as a refresh token because the endpoint does not verify the token type. This permits an attacker who already holds a valid access token to repeatedly exchange it for fresh access and refresh tokens, thereby extending the authenticated session far beyond the original expiry. The weakness is a combination of token type validation failure and improper token handling (CWE-1287, CWE-287).

Affected Systems

The flaw is present in Gitea's OAuth2 implementation. The CVE references a fix in the 28.1.0 release, but the CVE data does not specify an affected-version range; consequently, the exact scope of vulnerable releases is uncertain. Administrators should assume that all Gitea deployments that have not applied the latest security patch may be susceptible until the fix is applied.

Risk and Exploitability

A valid token for a given OAuth2 application is enough to carry out the attack. The attacker issues a standard token-refresh request, the server accepts it, and supplies new tokens. The CVSS score of 9.1 indicates critical severity. The EPSS score of less than 1% suggests that widespread exploitation is unlikely at present, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a legitimate web request to the "/oauth/token" endpoint, and the exploit requires no special privileges beyond a stolen or legitimate access token.

Generated by OpenCVE AI on October 17, 2026 at 11:20 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Gitea to the latest release that contains the fix for the OAuth2 token endpoint validation.
  • If an update is not possible immediately, temporarily disable OAuth2 refresh token usage or enforce token type checks for critical applications.
  • Continuously monitor authentication logs for abnormal or repeated token refresh attempts to detect possible abuse.

Generated by OpenCVE AI on October 17, 2026 at 11:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 17 Oct 2026 10:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-640

Fri, 16 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1287
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 13 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*

Wed, 07 Oct 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-287
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 07 Oct 2026 04:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

Tue, 06 Oct 2026 23:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-640

Tue, 06 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
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.
Title Gitea OAuth2 refresh token grant accepts access tokens
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-07T20:04:04.946Z

Reserved: 2026-10-04T22:02:04.874Z

Link: CVE-2026-101023

cve-icon Vulnrichment

Updated: 2026-10-07T20:03:59.475Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-06T22:16:59.737

Modified: 2026-10-13T14:39:07.980

Link: CVE-2026-101023

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T21:34:53Z

Links: CVE-2026-101023 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T11:30:07Z

Weaknesses
  • CWE-1287

    Improper Validation of Specified Type of Input

  • CWE-287

    Improper Authentication