Description
Public-only API token restriction is not enforced on team API routes
Published: 2026-08-13
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 does not have an EPSS score 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.

Generated by OpenCVE AI on August 13, 2026 at 19:03 UTC.

Remediation

No vendor fix or workaround currently provided.

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 13, 2026 at 19:03 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

Thu, 13 Aug 2026 19:15: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 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

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-08-13T16:44:49.923Z

Reserved: 2026-06-30T18:57:20.615Z

Link: CVE-2026-58431

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

Modified: 2026-08-13T17:17:27.050

Link: CVE-2026-58431

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T19:15:03Z

Weaknesses