CVE-2026-97204

Gitea label deletion across repository and organization IDs

Published Oct 18, 2026 CVSS 3.1 · 3.1 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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 3.1, indicating low severity. The lack of higher‑level controls allows a local or remote attacker with repository‑write access to delete organization labels, potentially impairing operations. EPSS score is < 1%, so the likelihood of exploitation is low. 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.

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 20, 2026 at 11:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 19, 2026, 8:18 PM
Reserved
Oct 4, 2026, 10:02 PM
Status
Awaiting Analysis
Published
Oct 18, 2026, 7:16 PM
Modified
Oct 19, 2026, 9:18 PM