CVE-2026-58417: Gitea REST API Exposes Organization Membership Vulnerability
MODERATECVE-2026-58417 is a MODERATE rest api exposes organization membership vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Gitea libraries in the Go ecosystem. The issue involves rest api exposes organization membership of private organizations to public. Remediation is available by upgrading affected packages to version 1.27.0.
CVE-2026-58417 at a Glance
How to Fix CVE-2026-58417
To remediate this vulnerability, upgrade all affected Gitea dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade gitea.dev to 1.27.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for gitea.dev
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-58417, inspect your project dependencies for Gitea:
inspect dependencies for gitea.dev
Analyze the terminal output to locate any version of Gitea in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.27.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Gitea, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-58417 Affected Gitea Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
gitea.dev
|
Go |
< 1.27.0
|
1.27.0
|
References
Frequently Asked Questions
What is CVE-2026-58417?
Which Gitea versions are affected?
What version fixes CVE-2026-58417?
Is gitea.dev affected?
What CWE is associated with CVE-2026-58417?
How can I check Go dependencies for CVE-2026-58417?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jr5x-6h83-wrxf",
"modified" : "2026-07-21T20:40:55Z",
"published" : "2026-07-21T20:40:55Z",
"aliases" : [ "CVE-2026-58417" ],
"summary" : "Gitea: REST API exposes organization membership of private organizations to public",
"details" : "### Summary\n\nThe endpoint \"/orgs/{org}/public_members/{username}\" + GET exposes organization membership of public members in a private organization.\n\n### PoC\n\n1. Spin up the nightly container of Gitea.\n2. Perform the default installation.\n3. Register a new user (let's call this user \"user1\").\n4. Create a new organization with \"private\" visibility. We will refer to this organization as \"user1org\".\n5. Make the user \"user1\" inside the organization visible.\n6. Log out and register a new user (\"user2\").\n7. Create an access token for \"user2\" with full access to the API.\n8. 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:\n\ncurl -X 'GET' \\\n 'http://localhost:4700/api/v1/orgs/user1org/public_members/user1' \\\n -H 'accept: application/json' \\\n -H 'authorization: token <user2-token>'\n\n9. You will receive status code 204, which leaks the organization membership.\n\n### Impact\n\nThe 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).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "gitea.dev"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.27.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/go-gitea/gitea/security/advisories/GHSA-jr5x-6h83-wrxf"
}, {
"type" : "WEB",
"url" : "https://github.com/go-gitea/gitea/pull/38145"
}, {
"type" : "WEB",
"url" : "https://github.com/go-gitea/gitea/commit/685b62c60fc595e3612a85f0895471876db56292"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/go-gitea/gitea"
}, {
"type" : "WEB",
"url" : "https://github.com/go-gitea/gitea/releases/tag/v1.27.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-21T20:40:55Z",
"nvd_published_at" : null
}
}