Gitea: OIDC userinfo Endpoint Returns Identity Claims Without Enforcing API Token Scopes (CVE-2026-55982)
Gitea's OIDC userinfo endpoint accepts API tokens as bearer credentials but does not enforce scope restrictions before returning identity claims. A personal access token with only the 'read:misc' scope can retrieve user identity information such as email and group memberships, even though it is denied access to user-related REST API endpoints that enforce scope checks. This leads to unauthorized disclosure of identity information associated with the authenticated user. The vulnerability affects Gitea versions prior to 1.27.0.
AI Analysis
Technical Summary
The OIDC userinfo endpoint in Gitea (GET /login/oauth/userinfo) improperly accepts API tokens without enforcing the token's scope restrictions. While scoped personal access tokens are enforced on user-related REST API endpoints, the OIDC endpoint returns identity claims including email and groups regardless of the token's assigned scopes. This allows tokens scoped only to 'read:misc' to access identity information that should be restricted. The issue weakens the authorization boundary of API token scopes but does not grant access to repositories, issues, or administrative functions.
Potential Impact
Attackers with API tokens scoped narrowly (e.g., 'read:misc') can retrieve identity information such as email addresses and organization/team memberships via the OIDC userinfo endpoint. This disclosure does not extend to repository data, issues, pull requests, or administrative capabilities. The impact is limited to unauthorized disclosure of user identity claims, weakening the intended scope-based access control for API tokens.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using API tokens with minimal scopes in contexts where the OIDC userinfo endpoint is accessible or restrict access to this endpoint. Monitor vendor communications for updates on patches addressing this scope enforcement issue.
Gitea: OIDC userinfo Endpoint Returns Identity Claims Without Enforcing API Token Scopes (CVE-2026-55982)
Description
Gitea's OIDC userinfo endpoint accepts API tokens as bearer credentials but does not enforce scope restrictions before returning identity claims. A personal access token with only the 'read:misc' scope can retrieve user identity information such as email and group memberships, even though it is denied access to user-related REST API endpoints that enforce scope checks. This leads to unauthorized disclosure of identity information associated with the authenticated user. The vulnerability affects Gitea versions prior to 1.27.0.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The OIDC userinfo endpoint in Gitea (GET /login/oauth/userinfo) improperly accepts API tokens without enforcing the token's scope restrictions. While scoped personal access tokens are enforced on user-related REST API endpoints, the OIDC endpoint returns identity claims including email and groups regardless of the token's assigned scopes. This allows tokens scoped only to 'read:misc' to access identity information that should be restricted. The issue weakens the authorization boundary of API token scopes but does not grant access to repositories, issues, or administrative functions.
Potential Impact
Attackers with API tokens scoped narrowly (e.g., 'read:misc') can retrieve identity information such as email addresses and organization/team memberships via the OIDC userinfo endpoint. This disclosure does not extend to repository data, issues, pull requests, or administrative capabilities. The impact is limited to unauthorized disclosure of user identity claims, weakening the intended scope-based access control for API tokens.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using API tokens with minimal scopes in contexts where the OIDC userinfo endpoint is accessible or restrict access to this endpoint. Monitor vendor communications for updates on patches addressing this scope enforcement issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-mg4f-x9v4-6h2p
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55982"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a600ab59c2644c7f8fe2135
Added to database: 07/22/2026, 00:11:33 UTC
Last enriched: 07/22/2026, 00:48:57 UTC
Last updated: 07/31/2026, 14:18:12 UTC
Views: 9
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.