Pocket ID: Arbitrary audience injection in client credentials grant (CVE-2026-62662)
Pocket ID contains an authentication bypass vulnerability where an authenticated OIDC client can supply an arbitrary resource parameter to obtain a signed access token for any audience, effectively bypassing service-to-service access controls.
CVE search metadata
CVE search record: CVE-2026-62662. Severity: high. CVSS: 7.7. EPSS: 0.27%. KEV: no. Product: Pocket ID (< 0.0.0-20260622164202-8158452b3730). Brief: Pocket ID: Arbitrary audience injection in client credentials grant (CVE-2026-62662). Brief link: https://feed.craftedsignal.io/briefs/2026-11-pocket-id-auth-bypass/
Triage facts
Revision 1- Applicability
- Pocket ID (< 0.0.0-20260622164202-8158452b3730)
- Evidence
- Unknown
- Severity
- High
- Action
- Immediate escalation
- Sources
- 2 public sources
- Freshness
- Revision 1Nov 9, 22:14 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
Pocket ID is vulnerable to an authentication bypass via its OAuth 2.0 client credentials grant implementation. The application fails to validate the resource parameter provided during the token request in backend/internal/service/oidc_service.go. As a result, any authenticated client can request a token for any audience, including other registered service clients. The system lacks a registry of permitted audiences or authorization policies per client, allowing malicious clients to forge tokens that appear legitimate to downstream resource servers. This vulnerability is tracked as CVE-2026-62662.
Attack Chain
- Attacker acquires valid credentials for a registered OIDC client.
- Attacker initiates an OAuth 2.0
client_credentialsgrant request to the Pocket ID token endpoint. - Attacker injects an arbitrary value into the
resourcefield of the HTTP POST request. - Pocket ID validates the attacker's client credentials.
- Pocket ID fails to validate the
resourceparameter against any allowlist or registered client metadata. - Pocket ID embeds the attacker-provided
resourcevalue into theaud(audience) claim of the generated JWT. - Attacker receives the signed token and uses it to authenticate against a target resource server.
- Target resource server validates the token against Pocket ID's JWKS and incorrectly accepts the token due to the spoofed
audclaim.
Impact
Successful exploitation allows a compromised or malicious client to impersonate authorized service traffic, effectively breaking service-to-service isolation. The attacker can bypass audience-based access controls and gain unauthorized access to any resource server that relies on Pocket ID for token validation.
Recommendation
- Upgrade Pocket ID to version 0.0.0-20260622164202-8158452b3730 or later immediately to include mandatory resource validation.
- Audit all existing OAuth clients for anomalous token requests to unexpected resource audiences.
- Implement strict audience validation logic on all downstream resource servers to verify that the
audclaim matches the specific resource identity, even if the token signature is valid.
Immediate actions
Upgrade Pocket ID to version 0.0.0-20260622164202-8158452b3730 or higher.
Threat Hunt
Analyze webserver access logs for token requests containing unexpected or non-standard "resource" parameter values in the POST body of /api/oidc/token requests.
Data: Webserver access logs (POST body / parameters)
Mitigations
Apply security patch by upgrading to version 0.0.0-20260622164202-8158452b3730.
CVE-2026-62662