{"vuln_id":"GHSA-q4xm-p75h-h9p3","aliases":["CVE-2026-62662"],"description":"Pocket ID: The client credentials grant allows any OIDC client to obtain tokens for arbitrary audiences","published_at":"2026-11-09T21:17:04Z","modified_at":"2026-11-23T20:40:54.722922Z","first_seen_at":"2026-11-23T21:06:31.548282Z","severity":"high","severity_source":"native","cvss_score":7.7,"cvss_vector":"CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N","cwe":["CWE-20","CWE-863"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-q4xm-p75h-h9p3"},"matched_alias":null,"items":[{"id":16653,"source":{"id":"osv","name":"OSV.dev"},"title":"GO-2026-6948: Pocket ID: The client credentials grant allows any OIDC client to obtain tokens for arbitrary audiences in github.com/pocket-id/pocket-id/backend","summary":"Pocket ID: The client credentials grant allows any OIDC client to obtain tokens for arbitrary audiences in github.com/pocket-id/pocket-id/backend\n\nAffected: Go:github.com/pocket-id/pocket-id/backend\n\nFixed in: 0.0.0-20260622164202-8158452b3730\n\nReferences:\nhttps://github.com/pocket-id/pocket-id/security/advisories/GHSA-q4xm-p75h-h9p3\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-62662\nhttps://github.com/pocket-id/pocket-id/commit/8158452b37304115c97c61c3a56082ce938ce6f0\nhttps://github.com/pocket-id/pocket-id/pull/1520\nhttps://github.com/pocket-id/pocket-id/releases/tag/v2.10.0","url":"https://osv.dev/vulnerability/GO-2026-6948","published_at":"2026-11-23T20:02:42Z","updated_at":"2026-11-23T20:30:12.607891Z","fetched_at":"2026-11-23T21:06:31.109646Z","severity":"high","cvss_score":7.7,"epss":0.00429,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/pocket-id/pocket-id/backend","vuln_id":"CVE-2026-62662","vuln_ids":["CVE-2026-62662","GHSA-Q4XM-P75H-H9P3","GO-2026-6948"],"tags":["osv","go","fix-available"],"cluster_id":14781,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/16653","html":"https://vulnwatch.ve1ve2.com/item/16653"}},{"id":16592,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-q4xm-p75h-h9p3: Pocket ID: The client credentials grant allows any OIDC client to obtain tokens for arbitrary audiences","summary":"Pocket ID: The client credentials grant allows any OIDC client to obtain tokens for arbitrary audiences ## Summary 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. ## Details 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: ```golang audClaim := client.ID if input.Resource != \"\" { audClaim = input.Resource // no validation performed } accessToken, err := s.jwtService.GenerateOAuthAccessToken(dummyUser, audClaim) ``` 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. There is no registry of permitted audiences, no per-client authorization policy controlling which resources a client may request tokens for, and no validation that the resource value corresponds to anything registered in Pocket ID. The introspection endpoint (`/api/oidc/introspect`) does not mitigate this. It checks that the introspecting client's ID matches the token's `aud` claim, but since the attacker controls `aud`, a resource server calling introspection to validate an inbound token will receive `\"active\": true`. Pocket ID has no server-side record of which client requested the token or whether it was authorized to do so, so introspection cannot distinguish a legitimately issued token from one obtained through this vulnerability. ## PoC Given a Pocket ID instance with two registered OIDC clients — `client-a` (attacker-controlled) and `client-b` (target resource) — the following request causes Pocket ID to issue a signed JWT with `aud: [\"client-b\"]`, authenticated only as `client-a`: ``` curl -X POST https:///api/oidc/token \\ -d \"grant_type=client_credentials\" \\ -d \"client_id=client-a\" \\ -d \"client_secret=\" \\ -d \"resource=client-b\" ``` The response is a valid, Pocket ID-signed JWT with: ```json { \"sub\": \"client-client-a\", \"aud\": [\"client-b\"], \"iss\": \"https://\", \"type\": \"oauth-access-token\" } ``` This token will pass signature and `aud` validation at any resource server that trusts Pocket ID's JWKS and accepts `client-b` as its audience identifier. ## Impact Any OIDC client registered in Pocket ID that has valid credentials (client secret or federated identity) can obtain a Pocket ID-signed access token scoped to any other registered client or arbitrary audience string. In deployments where services use the client credentials grant a Affected: Go:github.com/pocket-id/pocket-id/backend Fixed in: 0.0.0-20260622164202-8158452b3730 References: https://github.com/pocket-id/pocket-id/security/advisories/GHSA-q4xm-p75h-h9p3 https://nvd.nist.gov/vuln/detail/CVE-2026-62662 https://github.com/pocket-id/pocket-id/pull/1520 https://github.com/pocket-id/pocket-id/commit/8158452b37304115c97c61c3a56082ce938ce6f0 https://github.com/pocket-id/pocket-id https://github.com/pocket-id/pocket-id/releases/tag/v2.10.0","url":"https://osv.dev/vulnerability/GHSA-q4xm-p75h-h9p3","published_at":"2026-11-09T21:17:04Z","updated_at":"2026-11-23T20:40:54.722922Z","fetched_at":"2026-11-23T21:06:31.109592Z","severity":"high","cvss_score":7.7,"epss":0.00429,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/pocket-id/pocket-id/backend","vuln_id":"CVE-2026-62662","vuln_ids":["CVE-2026-62662","GHSA-Q4XM-P75H-H9P3","GO-2026-6948"],"tags":["osv","go","fix-available"],"cluster_id":14780,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/16592","html":"https://vulnwatch.ve1ve2.com/item/16592"}}]}