All vulnerabilities

Go

CVE-2026-62662

Pocket ID: The client credentials grant allows any OIDC client to obtain tokens for arbitrary audiences

Severity
High 7.7
Published
9 Nov 2026
Last changed
9 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.0.0-20260622164202-8158452b3730
Exploit chance
0.4% in the next 30 daysHigher than 37% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Improper input validation (CWE-20)Incorrect authorization (CWE-863)
Attack
Over the network · Only under certain conditions · Needs an administrator account · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N
Also known as
GHSA-q4xm-p75h-h9p3
Sources
OSV.dev and GitHub

Description

The client credentials grant (grant_type=client_credentials) does not validate the resource parameter before embedding it as the aud claim in the issued JWT. Any authenticated OIDC client can obtain a Pocket ID-signed access token claiming authorization for any arbitrary audience, including other registered OIDC clients. There is no check that the requested audience is a registered resource server, and no check that the requesting client has been granted permission to access it.

In backend/internal/service/oidc_service.go, createTokenFromClientCredentials accepts the resource parameter from the token request and places it directly into the aud claim of the issued JWT without validation:

The only guard in this function is verifyClientCredentialsInternal, which confirms the requesting client's credentials are valid. After that check passes, any value supplied as resource is accepted.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
github.com/pocket-id/pocket-id/backendGo · osv:Go:github.com/pocket-id/pocket-id/backend
  • Every version before 0.0.0-20260622164202-8158452b3730

About github.com/pocket-id/pocket-id/backend

Vulnerabilities in github.com/pocket-id/pocket-id/backend

In our list
2
Published in the last 12 months
2
Critical, last 12 months
1
High, last 12 months
1
Known exploited
0
Search the list for github.com/pocket-id/pocket-id/backend

References