Description
The `/api/v1/admin` route group did not enforce the `public-only` restriction of personal access tokens. A public-only token with admin scope issued by a site administrator could therefore list private organizations and the email addresses of all users, create organizations, obtain runner registration tokens and create new site administrator accounts, the last of which persists after the token is revoked. Tokens of users who are not site administrators cannot reach these routes; public-only tokens are now rejected on the admin API.
Published: 2026-11-01
Score: n/a
EPSS: n/a
KEV: No
Impact: Privilege Escalation via API Authorization Bypass
Action: Immediate Patch
AI Analysis

Impact

The "/api/v1/admin" route group failed to enforce the public‑only restriction on personal access tokens. A public‑only token issued with admin scope by a site administrator could list private organizations, expose user email addresses, create organizations, obtain runner registration tokens, and even create new site administrator accounts that persist after the token is revoked. This constitutes an authorization bypass that permits attackers to gain privileged control and access sensitive data.

Affected Systems

Any Gitea instance running a version earlier than 28.3.0 is affected. The fix was introduced in the 28.3.0 release. Gitea administrators using older versions should upgrade to 28.3.0 or later to remediate the issue.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog. However the impact is significant because an attacker who obtains a public‑only token with admin scope can perform high‑impact actions such as creating administrators that survive token revocation. The vulnerability can be exploited by any entity that has the ability to claim or obtain such a privileged token from a site administrator, which is often an internal threat. Without a CVSS score or EPSS data, the exact severity and likelihood cannot be quantified, but the potential for privilege escalation and data exposure suggests a high risk.

Generated by OpenCVE AI on November 1, 2026 at 11:26 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Gitea 28.3.0 or newer, which applies the enforcement patch.
  • Revoke all existing public‑only tokens that were granted admin scope and regenerate tokens with appropriate scopes.
  • Require that site administrators do not issue public‑only tokens with admin scope; review token generation policies and enforce least privilege.
  • If immediate upgrade is not possible, restrict access to the /api/v1/admin routes to only fully authorized administrator tokens.

Generated by OpenCVE AI on November 1, 2026 at 11:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 01 Nov 2026 10:00:00 +0000

Type Values Removed Values Added
Description The `/api/v1/admin` route group did not enforce the `public-only` restriction of personal access tokens. A public-only token with admin scope issued by a site administrator could therefore list private organizations and the email addresses of all users, create organizations, obtain runner registration tokens and create new site administrator accounts, the last of which persists after the token is revoked. Tokens of users who are not site administrators cannot reach these routes; public-only tokens are now rejected on the admin API.
Title Gitea admin API public-only token scope bypass
Weaknesses CWE-1259
CWE-284
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-11-01T09:48:40.375Z

Reserved: 2026-11-01T08:48:41.152Z

Link: CVE-2026-117635

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-11-01T10:18:35.320

Modified: 2026-11-01T10:18:35.437

Link: CVE-2026-117635

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-01T11:30:06Z

Weaknesses
  • CWE-1259

    Improper Restriction of Security Token Assignment

  • CWE-284

    Improper Access Control