CVE-2026-58431

Public-only API token restriction is not enforced on team API routes

Published Aug 13, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
Public-only API token restriction is not enforced on team API routes

Analysis

AI-generated

Technical impact

This vulnerability, identified as CWE‑863, is a broken access control flaw that allows an attacker with a public API token to invoke team endpoints that should be restricted to privileged users. Because the public‑only token restriction is not enforced on these routes, an attacker can modify team membership or configuration, effectively elevating privileges within the Git server.

Affected Systems

Gitea Open Source Git Server is affected. All installations using a version released before the 1.27.0 update, which added the enforcement check, remain vulnerable. The product is commonly deployed in self‑hosted Git environments.

Risk and Exploitability

The CVE has an EPSS score of 0.00147 (<1%) and is not listed in the CISA KEV catalog, yet the classification as CWE‑863 indicates a broken access control flaw that can directly lead to privilege escalation. If public tokens exist and team API routes are exposed, an attacker could manipulate team settings or insert malicious code. The exploitation probability is contingent on the presence of public tokens and the exposure of the relevant endpoints. The CVSS score of 4.3 classifies this vulnerability as medium severity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Gitea to version 1.27.0 or later where the token restriction is enforced on team API routes
  • If an immediate upgrade is not possible, disable or revoke public API tokens for any team‑related endpoints via the configuration settings
  • Restrict all team API routes to require authentication with user or admin tokens only
  • Monitor logs for unauthorized team API activity and validate that no public tokens are used to perform privileged operations

Generated by OpenCVE AI on August 14, 2026 at 20:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-h56g-4qw7-2mxg Gitea: Public-only API token restriction is not enforced on team API routes
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Metrics cvssV3_1

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

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 API token restriction is not enforced on team API routes
Title Public-only API token restriction is not enforced on team API routes
Weaknesses CWE-863
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Aug 14, 2026, 5:24 PM
Reserved
Jun 30, 2026, 6:57 PM
Status
Deferred
Published
Aug 13, 2026, 5:17 PM
Modified
Aug 26, 2026, 4:53 PM