CVE-2026-62662
Pocket ID: The client credentials grant allows any OIDC client to obtain tokens for arbitrary audiences
Impact
Pocket ID is an OIDC provider that allows users to authenticate with their passkeys to services. From 1.11.0 until 2.10.0, createTokenFromClientCredentials in backend/internal/service/oidc_service.go accepts the client-controlled resource parameter and embeds it directly in the access token aud claim without validating that the audience is registered or that the requesting client may access it. Any authenticated OIDC client can therefore obtain a Pocket ID-signed token naming another client or an arbitrary audience. The /api/oidc/introspect endpoint cannot distinguish the unauthorized token because it treats a token as active when the introspecting client's identifier matches the attacker-selected audience. In deployments where resource servers trust Pocket ID access tokens for service-to-service authorization, this bypasses audience-based access controls and can permit unauthorized data access or actions; deployments that do not use these tokens for resource-server authorization have no immediate exploitable impact. This issue is fixed in version 2.10.0.
An attacker can exploit this over the network, with an administrator account, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed. The attack can reach beyond the vulnerable component itself.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/pocket-id/pocket-id/backend | < 0.0.0-20260622164202-8158452b3730 | 0.0.0-20260622164202-8158452b3730 |
Affected products · Pocket-id
| Product | Affected versions |
|---|---|
| Pocket-id | from 1.11.0, before 2.10.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/pocket-id/pocket-id/commit/8158452b37304115c97c61c3a56082ce938ce6f0
- https://github.com/pocket-id/pocket-id/pull/1520
- https://github.com/pocket-id/pocket-id/releases/tag/v2.10.0
- https://github.com/pocket-id/pocket-id/security/advisories/GHSA-q4xm-p75h-h9p3
- https://github.com/advisories/GHSA-q4xm-p75h-h9p3
- https://nvd.nist.gov/vuln/detail/CVE-2026-62662