Description
`DELETE /api/v1/orgs/{org}/repos` deletes all repositories of an organization, but it did not enforce the public-only restriction of access tokens: the route only checked that the organization itself was public. A public-only token of an owner of a public organization could therefore permanently delete the organization's private repositories, which such a token must not reach. Routes that require organization ownership now reject public-only tokens.
Published: 2026-11-01
Score: n/a
EPSS: n/a
KEV: No
Impact: Unauthorized deletion of private repositories via a public-only token.
Action: Immediate Patch
AI Analysis

Impact

The reported issue allows a user holding a public-only access token, which normally can access only public data, to delete all repositories belonging to a public organization through the API endpoint DELETE /api/v1/orgs/{org}/repos. The endpoint failed to enforce the public-only restriction, permitting the token to perform a privileged delete operation on private repositories. This elevates the token holder to a power that should be reserved for organization owners, compromising data integrity and availability by permanently removing private code and history.

Affected Systems

This vulnerability affects the Gitea web application. All released versions prior to 28.3.0 are impacted because the bug fix was introduced in that release. Versions 28.3.0 and later include a check that rejects public-only tokens for organization‑owner routes.

Risk and Exploitability

The ability to delete repositories can be abused by any actor in possession of a public-only token granted to an organization owner. Exploitation requires only the possession of the token and can be carried out remotely via the exposed API, resulting in irreversible data loss. While the EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, the lack of a restriction on privileged API calls indicates a high severity risk. No public exploit has been reported at the time of this analysis.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 28.3.0 or later to apply the fix that blocks public-only tokens on organization‑owner routes.
  • Revoking or disabling any public-only tokens that belong to organization owners to prevent inadvertent privileged access.
  • Backing up organization repositories and regularly verifying repository integrity to mitigate the impact of any accidental or delayed deletions.

Generated by OpenCVE AI on November 1, 2026 at 11:23 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 `DELETE /api/v1/orgs/{org}/repos` deletes all repositories of an organization, but it did not enforce the public-only restriction of access tokens: the route only checked that the organization itself was public. A public-only token of an owner of a public organization could therefore permanently delete the organization's private repositories, which such a token must not reach. Routes that require organization ownership now reject public-only tokens.
Title Gitea public-only token bypass on bulk organization repository deletion
Weaknesses CWE-863
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

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

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

Link: CVE-2026-119441

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

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

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

Link: CVE-2026-119441

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses