Sceawere
Vulnerability Detail
CVE-2026-58431UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV
API Token Restriction Bypass Vulnerability
Vulnerability Metadata
- Severity
- Medium
- Score / CVSS
- 4.3
- Creation Date
- 1d ago
- Vendor
- Gitea
- Product
- Gitea Open Source Git Server
- Attack Type
- CWE-863
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Attack Complexity
- LOW
Narrative and Response
Description
Public-only API token restriction is not enforced on team API routes
Executive Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Technical Details
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mitigations
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
References
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Additional Metadata
{
"score": "4.3",
"pubDate": "2026-08-13T17:17:27.050Z",
"pubdate": "2026-08-13T17:17:27.050Z",
"executiveSummary": "An authorization enforcement vulnerability exists within team API routes where public-only API token restrictions are not properly validated or enforced. This security flaw allows API tokens restricted strictly to public-facing operations to successfully access sensitive team-level endpoints and resources. The vulnerability directly impacts systems utilizing scoped API authentication tokens, introducing significant risk implications regarding unauthorized data access, privilege escalation, and exposure of confidential organizational data. Attackers possessing a valid, constrained public-only API token can leverage this improper access control to bypass intended security boundaries without requiring elevated privileges or additional authentication factors. The exploitation of this issue relies on the application's failure to adequately verify token scope limitations against the requested resource endpoints during request processing. Consequently, unauthorized entities may interact with restricted team API routes, undermining the principle of least privilege and potentially leading to comprehensive compromise of team-managed assets and configurations.",
"technicalDetails": "The root cause of this vulnerability stems from an authorization logic defect in the routing and middleware components responsible for validating API token scopes and permissions. Specifically, the application fails to enforce the public-only restriction flag associated with specific API tokens when requests are routed to team-level endpoints. During the request lifecycle, the authentication subsystem correctly identifies and authenticates the incoming token but omits the necessary checks to ensure the token's designated operational scope aligns with the sensitivity level of the target route. The vulnerable component consists of the API authorization middleware and endpoint controllers governing team API routes. Because network exposure typically encompasses standard HTTP/HTTPS endpoints accessible over the internet or internal networks, any client presenting a valid public-scoped token can initiate requests against these sensitive pathways. The step-by-step attack flow proceeds as follows: First, an attacker obtains or utilizes a legitimate API token explicitly provisioned with public-only limitations. Second, the attacker crafts an HTTP request targeting restricted team API routes that should technically reject public tokens. Third, the attacker transmits the request containing the constrained token within the authorization headers or parameters. Fourth, the backend routing layer authenticates the token successfully based on its cryptographic validity or database existence but neglects to perform context-aware scope validation. Fifth, the application processes the request as if a privileged or unrestricted token were supplied, returning sensitive team data or executing unauthorized state-changing operations. Post-exploitation impact includes unauthorized data exfiltration, manipulation of team resources, and potential cascading security failures across integrated services."
}