CVE-2026-58425: Gitea: OAuth token introspection returns metadata of tokens issued to other clients (RFC 7662 section 4 violation)
Any authenticated OAuth client can call /login/oauth/introspect with another client’s access or refresh token in the body and learn:
active(true or false). A token-validity oracle that survives across application boundaries without consuming or “using” the token.scope. The scope of the token.username. The user the token belongs to.iss,sub,aud. Standard JWT registered claims.audreveals the issuing client_id, making it obvious to the introspecting client that the token does not belong to them. The server returns the data anyway.
Practical scenarios:
- Stolen-token validation oracle. An attacker who exfiltrates an access token from logs, traffic capture, browser memory, or a leaked dump can verify the token is still active before using it for higher-noise actions like API calls. The probe does not consume the grant counter, so it does not appear in audit trails of “actual token use”.
- Cross-tenant metadata enumeration. Any user can register their own OAuth application on a Gitea instance (web UI: /user/settings/applications). The attacker uses their own valid credentials to introspect tokens belonging to other tenants’ clients. They learn which user/scope each token corresponds to without ever using it.
- Token-confusion reconnaissance. Before chaining a separate vulnerability (e.g., a future token-replay or session-fixation bug), the attacker can use introspection to map the token universe.
References
- github.com/advisories/GHSA-vxv2-8j6r-pcpg
- github.com/go-gitea/gitea/commit/c9920b7bd0f6ec1f7590f104711b09d55917f9e8
- github.com/go-gitea/gitea/pull/38042
- github.com/go-gitea/gitea/releases/tag/v1.27.0
- github.com/go-gitea/gitea/security/advisories/GHSA-vxv2-8j6r-pcpg
- nvd.nist.gov/vuln/detail/CVE-2026-58425
Code Behaviors & Features
Detect and mitigate CVE-2026-58425 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →