{"items":[{"id":"NVI-00020082","kind":"vulnerability","title":"Gitea: OIDC userinfo Endpoint Returns Identity Claims Without Enforcing API Token Scopes","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-mg4f-x9v4-6h2p","CVE-2026-55982"],"plain_summary":"GitHub lists this reviewed advisory for code.gitea.io/gitea. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-74419cc340bf24047b7b2200cf7b964d"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-74419cc340bf24047b7b2200cf7b964d","url":"https://github.com/advisories/GHSA-mg4f-x9v4-6h2p","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-mg4f-x9v4-6h2p","publisher":"GitHub Advisory Database","observed_at":"2026-11-03T22:34:39.734Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-74419cc340bf24047b7b2200cf7b964d"],"technology":"code.gitea.io/gitea","known_exclusions":[],"conditions_summary":"### Summary\n\nThe OIDC userinfo endpoint (`GET /login/oauth/userinfo`) accepts Gitea API tokens as bearer credentials but does not enforce API token scopes before returning identity claims.\n\nA personal access token scoped only to `read:misc` can successfully retrieve user information from the OIDC userinfo endpoint, even though the same token is denied access to user-related REST API endpoints that enforce scope checks.\n\nAs a result, identity information remains accessible through the OIDC endpoint regardless of the scopes assigned to the API token.\n\n### Details\n\nGitea supports scoped personal access tokens and enforces scope checks on user-related REST API endpoints.\n\nFor example, a token scoped only to `read:misc` is denied access to endpoints such as:\n\n| Endpoint | Required Scope |\n|----------|----------------|\n| `GET /api/v1/user` | `read:user` |\n| `GET /api/v1/user/emails` | `read:user` |\n| `GET /api/v1/user/orgs` | `read:organization` |\n\nRequests to these endpoints return:\n\n```http\n403 Forbidden\n```\n\nwith a scope-related error.\n\nHowever, the same `read:misc` token can be supplied as a bearer credential to:\n\n```http\nGET /login/oauth/userinfo\nAuthorization: Bearer \n```\n\na","public_affected_ranges":["< 1.27.0"]}],"null_published_at":"2026-11-08T15:11:47.523Z","source_updated_at":"2026-07-21T20:42:07.000Z","source_disclosed_at":"2026-07-21T20:42:05.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-03T22:34:39.734Z"}],"next_cursor":null,"snapshot_revision":"42594"}