Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Gitea: OAuth token introspection returns metadata of tokens issued to other clients (RFC 7662 section 4 violation) (CVE-2026-58425)

0
Medium
Published: 07/21/2026 (07/21/2026, 20:21:33 UTC)
Source: GCVE Database
Product: code.gitea.io/gitea

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Affected software

Goghsa
code.gitea.io/gitea
Affected versions
<1.27.0

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

AILast updated: 07/22/2026, 00:52:28 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses