Pocket ID: The client credentials grant allows any OIDC client to obtain tokens for arbitrary audiences in github.com/pocket-id/pocket-id/backend
{
"review_status": "UNREVIEWED",
"url": "https://pkg.go.dev/vuln/GO-2026-6948"
}{
"imports": [
{
"path": "github.com/pocket-id/pocket-id/backend/frontend",
"symbols": [
"RegisterFrontend",
"isOAuth2AuthorizationPostRequest",
"rateLimitOnlyForOAuth2AuthorizationPostRequest"
]
},
{
"path": "github.com/pocket-id/pocket-id/backend/internal/utils",
"symbols": [
"ValidateCallbackURLPattern"
]
},
{
"path": "github.com/pocket-id/pocket-id/backend/internal/common",
"symbols": [
"NewOidcInvalidRequestError",
"OidcAccountSelectionRequiredError.Error",
"OidcAccountSelectionRequiredError.HttpStatusCode",
"OidcAuthorizationPendingError.Error",
"OidcAuthorizationPendingError.HttpStatusCode",
"OidcClientAssertionInvalidError.Error",
"OidcClientAssertionInvalidError.HttpStatusCode",
"OidcClientNotFoundError.Error",
"OidcClientNotFoundError.HttpStatusCode",
"OidcClientSecretInvalidError.Error",
"OidcClientSecretInvalidError.HttpStatusCode",
"OidcConsentRequiredError.Error",
"OidcConsentRequiredError.HttpStatusCode",
"OidcGrantTypeNotSupportedError.Error",
"OidcGrantTypeNotSupportedError.HttpStatusCode",
"OidcInteractionRequiredError.Error",
"OidcInteractionRequiredError.HttpStatusCode",
"OidcInvalidAuthorizationCodeError.Error",
"OidcInvalidAuthorizationCodeError.HttpStatusCode",
"OidcInvalidCodeVerifierError.Error",
"OidcInvalidCodeVerifierError.HttpStatusCode",
"OidcInvalidRefreshTokenError.Error",
"OidcInvalidRefreshTokenError.HttpStatusCode",
"OidcInvalidRequestError.Description",
"OidcInvalidRequestError.Error",
"OidcInvalidRequestError.HttpStatusCode",
"OidcInvalidRequestURIError.Error",
"OidcInvalidRequestURIError.HttpStatusCode",
"OidcLoginRequiredError.Error",
"OidcLoginRequiredError.HttpStatusCode",
"OidcMissingAuthorizationCodeError.Error",
"OidcMissingAuthorizationCodeError.HttpStatusCode",
"OidcMissingCallbackURLError.Error",
"OidcMissingCallbackURLError.HttpStatusCode",
"OidcMissingClientCredentialsError.Error",
"OidcMissingClientCredentialsError.HttpStatusCode",
"OidcMissingCodeChallengeError.Error",
"OidcMissingCodeChallengeError.HttpStatusCode",
"OidcMissingRefreshTokenError.Error",
"OidcMissingRefreshTokenError.HttpStatusCode",
"OidcNoCallbackURLError.Error",
"OidcNoCallbackURLError.HttpStatusCode",
"OidcPARNotSupportedForPublicClientsError.Error",
"OidcPARNotSupportedForPublicClientsError.HttpStatusCode",
"OidcSlowDownError.Error",
"OidcSlowDownError.HttpStatusCode"
]
},
{
"path": "github.com/pocket-id/pocket-id/backend/internal/controller",
"symbols": [
"CustomClaimController.UpdateCustomClaimsForUserGroupHandler",
"CustomClaimController.UpdateCustomClaimsForUserHandler",
"NewApiKeyController",
"NewAppConfigController",
"NewAppImagesController",
"NewAuditLogController",
"NewCustomClaimController",
"NewOidcController",
"NewScimController",
"NewUserController",
"NewUserGroupController",
"NewUserSignupController",
"NewVersionController",
"NewWebauthnController",
"NewWellKnownController",
"OidcController.EndSessionHandler",
"OidcController.EndSessionHandlerPost",
"OidcController.authorizationConfirmationRequiredHandler",
"OidcController.authorizeCallbackURLHandler",
"OidcController.authorizeHandler",
"OidcController.createTokensHandler",
"OidcController.deviceAuthorizationHandler",
"OidcController.getDeviceCodeInfoHandler",
"OidcController.introspectTokenHandler",
"OidcController.parRequestInfoHandler",
"OidcController.pushedAuthorizationRequestHandler",
"OidcController.userInfoHandler",
"OidcController.verifyDeviceCodeHandler",
"UserController.RequestOneTimeAccessEmailAsAdminHandler",
"UserController.RequestOneTimeAccessEmailAsUnauthenticatedUserHandler",
"WebauthnController.reauthenticateHandler",
"WellKnownController.computeOIDCConfiguration",
"isOidcPromptError",
"parseBasicAuth"
]
},
{
"path": "github.com/pocket-id/pocket-id/backend/internal/service",
"symbols": [
"GetAuthenticationMethod",
"IsUserGroupAllowedToAuthorize",
"JwtService.BuildIDToken",
"JwtService.BuildOAuthAccessToken",
"JwtService.GenerateAccessToken",
"JwtService.GenerateIDToken",
"JwtService.GenerateOAuthAccessToken",
"JwtService.GenerateOAuthRefreshToken",
"JwtService.GetTokenType",
"JwtService.VerifyIdToken",
"JwtService.VerifyOAuthAccessToken",
"JwtService.VerifyOAuthRefreshToken",
"LdapService.SyncAll",
"NewOidcService",
"OidcService.AuthorizationRequired",
"OidcService.Authorize",
"OidcService.CreateClient",
"OidcService.CreateDeviceAuthorization",
"OidcService.CreatePushedAuthorizationRequest",
"OidcService.CreateTokens",
"OidcService.GetClientPreview",
"OidcService.GetDeviceCodeInfo",
"OidcService.GetPushedAuthorizationRequest",
"OidcService.GetUserClaimsForClient",
"OidcService.HasAuthorizedClient",
"OidcService.IntrospectToken",
"OidcService.IsClientAccessibleToUser",
"OidcService.ResolveAllowedCallbackURL",
"OidcService.ResolveAuthorizeCallbackURL",
"OidcService.RevokeAuthorizedClient",
"OidcService.UpdateClient",
"OidcService.ValidateEndSession",
"OidcService.VerifyDeviceCode",
"OidcService.addCallbackURLToClient",
"OidcService.applyPushedAuthorizationRequest",
"OidcService.createAuthorizationCode",
"OidcService.createAuthorizedClientInternal",
"OidcService.createRefreshToken",
"OidcService.createTokenFromAuthorizationCode",
"OidcService.createTokenFromClientCredentials",
"OidcService.createTokenFromDeviceCode",
"OidcService.createTokenFromRefreshToken",
"OidcService.getAndConsumePushedAuthorizationRequest",
"OidcService.getCallbackURL",
"OidcService.getJWKCache",
"OidcService.getLogoutCallbackURL",
"OidcService.getPushedAuthorizationRequestInternal",
"OidcService.getUserClaims",
"OidcService.getUserClaimsForClientInternal",
"OidcService.hasAuthorizedClientInternal",
"OidcService.introspectAccessToken",
"OidcService.introspectRefreshToken",
"OidcService.jwkSetForURL",
"OidcService.verifyClientAssertionFromFederatedIdentities",
"OidcService.verifyClientCredentialsInternal",
"OneTimeAccessService.ExchangeOneTimeAccessToken",
"ScimService.SyncAll",
"ScimService.SyncServiceProvider",
"ScimService.syncUser",
"SetAuthenticationMethods",
"UserSignUpService.SignUp",
"UserSignUpService.SignUpInitialAdmin",
"WebAuthnService.ConsumeReauthenticationToken",
"WebAuthnService.CreateReauthenticationTokenWithAccessToken",
"WebAuthnService.VerifyLogin",
"clientAuthCredentialsFromCreateTokensDto",
"codeChallengeMethodIsSha256",
"parsePromptParameter",
"resolveConfiguredCallbackURL",
"updateOIDCClientModelFromDto",
"validateCodeVerifier"
]
},
{
"path": "github.com/pocket-id/pocket-id/backend/internal/job",
"symbols": [
"DbCleanupJobs.clearOidcAuthorizationCodes",
"DbCleanupJobs.clearOidcPushedAuthorizationRequests",
"DbCleanupJobs.clearOidcRefreshTokens",
"Scheduler.RegisterDbCleanupJobs",
"ScimJobs.SyncScim"
]
},
{
"path": "github.com/pocket-id/pocket-id/backend/internal/dto",
"symbols": [
"NormalizerJSONBinding.Bind",
"ShouldBindWithNormalizedJSON",
"UserCreateDto.Validate",
"UserGroupCreateDto.Validate",
"ValidateCallbackURLPattern",
"ValidateResponseMode"
]
},
{
"path": "github.com/pocket-id/pocket-id/backend/internal/middleware",
"symbols": [
"AuthMiddleware.Add",
"BuildCSP",
"CspMiddleware.Add",
"GetCSPNonce",
"JwtAuthMiddleware.Add",
"JwtAuthMiddleware.Verify",
"generateNonce",
"isCorsPath"
]
},
{
"path": "github.com/pocket-id/pocket-id/backend/internal/model",
"symbols": [
"OidcAuthorizationRequestParameters.Scan",
"OidcAuthorizationRequestParameters.Value",
"OidcRefreshToken.Scopes",
"UserAuthorizedOidcClient.Scopes"
]
},
{
"path": "github.com/pocket-id/pocket-id/backend/internal/bootstrap",
"symbols": [
"Bootstrap",
"ConnectDatabase",
"InitStorage",
"NewDatabase",
"initServices",
"registerRoutes",
"tlsCertProvider.StartWatching"
]
}
]
}