Gitea: Public-Only Personal access tokens scope bypass in Organization and Permission Endpoints (CVE-2026-58429)
A vulnerability in Gitea allows personal access tokens restricted to the public-only scope to bypass intended access controls and retrieve private organization membership and permission details for the token owner's account via certain API endpoints. Although direct access to private organizations is blocked, indirect endpoints such as user organization listings and permission queries do not consistently enforce the public-only restriction, exposing private organization data. This is due to inconsistent middleware enforcement and route-specific authorization failures.
AI Analysis
Technical Summary
CVE-2026-58429 in Gitea affects API endpoints GET /api/v1/user/orgs and GET /api/v1/users/{username}/orgs/{org}/permissions, where personal access tokens scoped as public-only can still access private organization membership and permission details for the token owner's account. The vulnerability arises because the middleware enforcing the public-only token restriction depends on route context that is not consistently populated, allowing private organization data to be disclosed through alternate code paths. Direct access to private organizations is correctly blocked, but indirect endpoints rely on user visibility logic that does not filter private organizations for public-only tokens, resulting in unauthorized data exposure.
Potential Impact
An attacker or user with a personal access token restricted to public-only scope can retrieve private organization membership and permission details for their own account, violating the intended access control guarantees. This exposure includes private organization membership information and role details such as ownership, admin status, and repository creation capabilities. The vulnerability does not allow modification or denial of service but leaks sensitive private organization data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid using personal access tokens with the public-only scope for accounts belonging to private organizations if private data exposure is a concern. Monitor vendor communications for updates and apply patches promptly once available.
Gitea: Public-Only Personal access tokens scope bypass in Organization and Permission Endpoints (CVE-2026-58429)
Description
A vulnerability in Gitea allows personal access tokens restricted to the public-only scope to bypass intended access controls and retrieve private organization membership and permission details for the token owner's account via certain API endpoints. Although direct access to private organizations is blocked, indirect endpoints such as user organization listings and permission queries do not consistently enforce the public-only restriction, exposing private organization data. This is due to inconsistent middleware enforcement and route-specific authorization failures.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-58429 in Gitea affects API endpoints GET /api/v1/user/orgs and GET /api/v1/users/{username}/orgs/{org}/permissions, where personal access tokens scoped as public-only can still access private organization membership and permission details for the token owner's account. The vulnerability arises because the middleware enforcing the public-only token restriction depends on route context that is not consistently populated, allowing private organization data to be disclosed through alternate code paths. Direct access to private organizations is correctly blocked, but indirect endpoints rely on user visibility logic that does not filter private organizations for public-only tokens, resulting in unauthorized data exposure.
Potential Impact
An attacker or user with a personal access token restricted to public-only scope can retrieve private organization membership and permission details for their own account, violating the intended access control guarantees. This exposure includes private organization membership information and role details such as ownership, admin status, and repository creation capabilities. The vulnerability does not allow modification or denial of service but leaks sensitive private organization data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid using personal access tokens with the public-only scope for accounts belonging to private organizations if private data exposure is a concern. Monitor vendor communications for updates and apply patches promptly once available.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-fq2p-5p22-8g6j
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58429"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a600aa29c2644c7f8fdfca7
Added to database: 07/22/2026, 00:11:14 UTC
Last enriched: 07/22/2026, 00:38:30 UTC
Last updated: 07/22/2026, 00:38:30 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.