CVE-2026-24791

Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes

Published Aug 13, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes

Analysis

AI-generated

Technical impact

A public‑only token can be used to call the /api/v1/user endpoint for a user’s own account. Because the token’s permissions are public, the endpoint does not enforce the normal private‑resource restrictions, allowing an attacker to obtain or modify data that should be restricted to the authenticated user. This weakness is a privilege‑management error, identified as CWE‑863, and can expose sensitive user profile information and potentially other private data managed through that endpoint.

Affected Systems

The issue affects the Gitea Open Source Git Server. The affected versions include all releases prior to the 1.26.2 update, which resolves the token‑scope filtering bug, as inferred from the referenced release notes. No detailed sub‑version list is provided, so any deployment of Gitea before 1.26.2 is potentially vulnerable.

Risk and Exploitability

The vulnerability is exploitable through the documented REST API. It carries a CVSS score of 8.1. An attacker only needs a public‑only token that they can acquire or receive, and the token can then read or update the bearer’s private resources. Because no EPSS score is available and the issue is not listed in CISA KEV, the public exploitation probability is uncertain, but the potential impact on confidentiality makes it a high‑risk finding. The attack path requires API access and valid authentication credentials, so the attack surface is limited to systems where an attacker can obtain or forge a public‑only token.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.26.2 or newer, where the token‑scope filtering bug is fixed.
  • Revoke or regenerate any existing public‑only tokens that may have been compromised or used erroneously, and consider restricting token creation to scopes that enforce private‑resource visibility.
  • Implement a token‑scoping policy to disallow public‑only tokens for accessing private data.

Generated by OpenCVE AI on August 13, 2026 at 20:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wrr5-99h5-gq57 Gitea: Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes
History
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Type Values Removed Values Added
Description Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes
Title Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes
Weaknesses CWE-863
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Aug 13, 2026, 6:48 PM
Reserved
Mar 3, 2026, 3:25 AM
Status
Deferred
Published
Aug 13, 2026, 5:17 PM
Modified
Aug 26, 2026, 4:53 PM