Description
Deleting a label compared the ID of the repository in the request against the organization ID of organization labels, and the two ID sequences overlap. A user with write access to the issues of a repository could therefore delete the labels of an organization that has the same numeric ID as that repository. Labels are now deleted only within their own repository or organization.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Unintended organization label deletion (privilege escalation) via repository write access
Action: Apply patch
AI Analysis

Impact

A flaw in Gitea’s label‑deletion logic compared the numeric identifier of a repository with that of an organization when determining which labels to remove. Because the two ID sequences can overlap, a user who has write permissions on a repository’s issues could trigger the deletion of labels belonging to an organization that shares the same numeric ID. The consequence is loss of organization‑wide labeling, which can disrupt issue tracking, visibility, and downstream automation. This represents an authorization bypass (CWE‑863) that allows an unintended privilege escalation to delete resources outside the user’s intended scope.

Affected Systems

The vulnerability affects Gitea installations running any version prior to 28.2.0. The product is the Gitea server component. No specific sub‑versions are listed beyond the pre‑patch threshold, so all releases before v28.2.0 are considered vulnerable unless other mitigations are applied.

Risk and Exploitability

The CVSS score is not disclosed in the advisory; however, the absence of a higher‑level control allows a local or remote attacker with repository‑write access to delete organization labels, which could impair operations. EPSS data is unavailable, so the likelihood of exploitation is uncertain. The issue is not listed in the CISA KEV catalog, suggesting no public exploits have been observed, but the control flaw remains serious. Attackers would likely use a crafted HTTP request to the label‑deletion endpoint, leveraging existing repository write permissions to exploit the ID comparison bug.

Generated by OpenCVE AI on October 18, 2026 at 21:17 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to 28.2.0 or later where label deletion is scoped appropriately.
  • Revoke write permissions on repository issues from users who also have access to organization labels, limiting the potential for accidental deletion.
  • As a temporary safeguard, configure a firewall or reverse‑proxy rule to block the label‑deletion API endpoint for accounts lacking full organization ownership until the upgrade is applied.

Generated by OpenCVE AI on October 18, 2026 at 21:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 19:15:00 +0000

Type Values Removed Values Added
Description Deleting a label compared the ID of the repository in the request against the organization ID of organization labels, and the two ID sequences overlap. A user with write access to the issues of a repository could therefore delete the labels of an organization that has the same numeric ID as that repository. Labels are now deleted only within their own repository or organization.
Title Gitea label deletion across repository and organization IDs
Weaknesses CWE-863
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-18T19:00:50.994Z

Reserved: 2026-10-04T22:02:04.895Z

Link: CVE-2026-97204

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T19:16:33.530

Modified: 2026-10-18T19:16:33.530

Link: CVE-2026-97204

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T21:30:14Z

Weaknesses