GHSA-jr5x-6h83-wrxf

Suggest an improvement
Source
https://github.com/advisories/GHSA-jr5x-6h83-wrxf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-jr5x-6h83-wrxf/GHSA-jr5x-6h83-wrxf.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-jr5x-6h83-wrxf
Aliases
Published
2026-07-21T20:40:55Z
Modified
2026-08-24T00:36:58Z
Severity
  • 5.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Gitea: REST API exposes organization membership of private organizations to public
Details

Summary

The endpoint "/orgs/{org}/public_members/{username}" + GET exposes organization membership of public members in a private organization.

PoC

  1. Spin up the nightly container of Gitea.
  2. Perform the default installation.
  3. Register a new user (let's call this user "user1").
  4. Create a new organization with "private" visibility. We will refer to this organization as "user1org".
  5. Make the user "user1" inside the organization visible.
  6. Log out and register a new user ("user2").
  7. Create an access token for "user2" with full access to the API.
  8. Use the endpoint "/orgs/{org}/public_members/{username}" + GET with the correct username of "user1", organization name, and access token of "user2" to query whether "user1" is a member of the organization. The following curl command demonstrates the usage:

curl -X 'GET'
'http://localhost:4700/api/v1/orgs/user1org/public_members/user1'
-H 'accept: application/json'
-H 'authorization: token '

  1. You will receive status code 204, which leaks the organization membership.

Impact

The vulnerability discloses organization membership. An information that is not accessible via the web app (the organization is hidden, and therefore, the organization membership on the user's profile page is also hidden).

Database specific
{
    "cwe_ids": [
        "CWE-200",
        "CWE-863"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-07-21T20:40:55Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

Go / gitea.dev

Package

Name
gitea.dev
View open source insights on deps.dev
Purl
pkg:golang/gitea.dev

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.27.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-jr5x-6h83-wrxf/GHSA-jr5x-6h83-wrxf.json"