Description
Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes
Published: 2026-08-13
Score: 8.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 13 Aug 2026 19:30:00 +0000

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'}


Thu, 13 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Thu, 13 Aug 2026 17:00:00 +0000

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

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-08-13T18:48:01.037Z

Reserved: 2026-03-03T03:25:50.325Z

Link: CVE-2026-24791

cve-icon Vulnrichment

Updated: 2026-08-13T18:47:38.134Z

cve-icon NVD

Status : Received

Published: 2026-08-13T17:17:22.000

Modified: 2026-08-13T19:17:19.900

Link: CVE-2026-24791

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T21:00:06Z

Weaknesses