Gitea: OAuth token introspection returns metadata of tokens issued to other clients (RFC 7662 section 4 violation) (CVE-2026-58425)
Gitea versions prior to 1.27.0 contain a vulnerability in the OAuth token introspection endpoint where metadata of tokens issued to other clients can be disclosed. The introspection endpoint fails to verify that the client requesting token introspection matches the token's original audience, violating RFC 7662 section 4. This allows an authenticated client to obtain metadata about tokens issued to different clients. The issue arises from a missing check comparing the introspecting client's ID with the token's issuing client ID. A patch addressing this check exists in related handlers but has not been applied to the introspection endpoint in affected versions.
AI Analysis
Technical Summary
In Gitea versions before 1.27.0, the OAuth token introspection endpoint improperly returns metadata for tokens issued to other OAuth clients. The endpoint authenticates the introspecting client but then overwrites the client context with the token's issuing client without verifying that these clients match. Consequently, any authenticated OAuth client can introspect tokens issued to other clients and receive token metadata, violating the OAuth 2.0 Token Introspection specification (RFC 7662 section 4). This is due to missing authorization checks in the introspection handler function. Related handlers have been recently patched to enforce client binding, but the introspection endpoint remains vulnerable in these versions.
Potential Impact
An authenticated OAuth client can retrieve metadata about access tokens issued to other clients, potentially exposing sensitive information such as usernames and token scopes. This information disclosure violates OAuth 2.0 best practices and may aid attackers in reconnaissance or further attacks. The vulnerability does not allow token misuse or token forgery but leaks token metadata across client boundaries.
Mitigation Recommendations
A fix is available in Gitea versions 1.27.0 and later that enforces client binding checks in the OAuth token introspection endpoint. Users should upgrade to version 1.27.0 or later to remediate this issue. Until upgraded, restrict access to the introspection endpoint to trusted clients only. Patch status is confirmed by the absence of the vulnerability in versions >=1.27.0.
Gitea: OAuth token introspection returns metadata of tokens issued to other clients (RFC 7662 section 4 violation) (CVE-2026-58425)
Description
Gitea versions prior to 1.27.0 contain a vulnerability in the OAuth token introspection endpoint where metadata of tokens issued to other clients can be disclosed. The introspection endpoint fails to verify that the client requesting token introspection matches the token's original audience, violating RFC 7662 section 4. This allows an authenticated client to obtain metadata about tokens issued to different clients. The issue arises from a missing check comparing the introspecting client's ID with the token's issuing client ID. A patch addressing this check exists in related handlers but has not been applied to the introspection endpoint in affected versions.
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
In Gitea versions before 1.27.0, the OAuth token introspection endpoint improperly returns metadata for tokens issued to other OAuth clients. The endpoint authenticates the introspecting client but then overwrites the client context with the token's issuing client without verifying that these clients match. Consequently, any authenticated OAuth client can introspect tokens issued to other clients and receive token metadata, violating the OAuth 2.0 Token Introspection specification (RFC 7662 section 4). This is due to missing authorization checks in the introspection handler function. Related handlers have been recently patched to enforce client binding, but the introspection endpoint remains vulnerable in these versions.
Potential Impact
An authenticated OAuth client can retrieve metadata about access tokens issued to other clients, potentially exposing sensitive information such as usernames and token scopes. This information disclosure violates OAuth 2.0 best practices and may aid attackers in reconnaissance or further attacks. The vulnerability does not allow token misuse or token forgery but leaks token metadata across client boundaries.
Mitigation Recommendations
A fix is available in Gitea versions 1.27.0 and later that enforces client binding checks in the OAuth token introspection endpoint. Users should upgrade to version 1.27.0 or later to remediate this issue. Until upgraded, restrict access to the introspection endpoint to trusted clients only. Patch status is confirmed by the absence of the vulnerability in versions >=1.27.0.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-vxv2-8j6r-pcpg
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58425"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a600abb9c2644c7f8fe2b9d
Added to database: 07/22/2026, 00:11:39 UTC
Last enriched: 07/22/2026, 00:52:28 UTC
Last updated: 07/27/2026, 11:44:37 UTC
Views: 13
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.