🛡️ CVE-2026-55982 — gitea.dev

⚪ Unknown ✅ No Known Exploit CWE-200 OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Gitea: OIDC userinfo Endpoint Returns Identity Claims Without Enforcing API Token Scopes

Summary

The 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.

A 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.

As a result, identity information remains accessible through the OIDC endpoint regardless of the scopes assigned to the API token.

Details

Gitea supports scoped personal access tokens and enforces scope checks on user-related REST API endpoints.

For example, a token scoped only to read:misc is denied access to endpoints such as:

| Endpoint | Required Scope |

|----------|----------------|

| GET /api/v1/user | read:user |

| GET /api/v1/user/emails | read:user |

| GET /api/v1/user/orgs | read:organization |

Requests to these endpoints return:

```http

403 Forbidden

```

with a scope-related error.

However, the same read:misc token can be supplied as a bearer credential to:

```http

GET /login/oauth/userinfo

Authorization: Bearer <token>

```

and receives a successful response containing identity claims.

Observed claims include:

  • email
  • groups

The groups claim contains organization and team membership information associated with the authenticated user.

This behavior indicates that the OIDC userinfo endpoint accepts API tokens but does not apply scope restrictions before returning identity claims.

PoC

PoC Details

Proof-of-concept code:

https://anonymous.4open.science/r/Gitea_PoC-EC93/3_poc_oidc_userinfo_scope_bypass

Reproduction Steps

1. Create a personal access token with only the following scope:

```text

read:misc

```

2. Verify that the token cannot access user-related REST API endpoints:

```http

GET /api/v1/user

GET /api/v1/user/emails

GET /api/v1/user/orgs

```

Each request returns:

```http

403 Forbidden

```

3. Send the same token to the OIDC userinfo endpoint:

```http

GET /login/oauth/userinfo

Authorization: Bearer <read-misc-token>

```

4. Observe that the request succeeds and returns identity claims, for example:

```json

{

"email": "[email protected]",

"groups": [

...

]

}

```

Impact

Holders of narrowly scoped API tokens can obtain identity information through the OIDC userinfo endpoint regardless of the scopes assigned to the token.

The issue does not provide access to repositories, issues, pull requests, administrative functionality, or data belonging to other users.

Impact is limited to disclosure of identity information associated with the authenticated user. However, it weakens the authorization boundary established by API token scopes because identity claims remain accessible even when the token lacks user- or organization-related scopes.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. Rated impact: confidentiality low, integrity none, availability none.

Weakness class

CVE-2026-55982 is classified as CWE-200: Exposure of Sensitive Information. Information that should stay internal is disclosed to someone who is not authorised to see it.

Affected software

CVE-2026-55982 is recorded against 2 packages.

  • code.gitea.io/gitea
  • gitea.dev

Timeline and source

Published on 21 July 2026 and last revised on 27 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Package)
github.com (Web)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
CWE CWE-200
Public Exploit ✅ No
Source OSV
Published 2026-07-21
Updated 2026-08-12
Modified 2026-07-27
Fix URL N/A

Affected Packages

Software From version Fixed in
code.gitea.io/gitea
gitea.dev

Similar Threats

Free Vulnerability Check

Is your site affected by CVE-2026-55982?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2026-55982 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.