---
id: "CVE-2026-97204"
kind: "vulnerability"
aliases: ["CVE-2026-97204"]
title: "Gitea-style label deletion matched wrong owner ID, allowing unrelated label deletion"
severity: "low"
cvss: 3.1
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["other", "self-hosted"]
not_affected_if: []
published_at: "2026-10-18T19:16:33+00:00"
first_seen_at: "2026-10-23T21:57:17+00:00"
updated_at: "2026-10-25T04:47:46+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-97204", "first_seen_at": "2026-10-23T21:57:17+00:00"}]
---

# Gitea-style label deletion matched wrong owner ID, allowing unrelated label deletion

Deleting a label compared the repository ID from the request against the organization ID of organization labels, and because those ID sequences overlap, the wrong labels could match. A user with write access to a repository's issues could delete the labels of an organization whose numeric ID equals that repository's ID.

_Summary, check and fix written by a model from the sources; labelled as such._

## Timeline

- 2026-10-23T21:57:17+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-97204

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
