GO-2026-6948

Source
https://pkg.go.dev/vuln/GO-2026-6948
Import Source
https://vuln.go.dev/ID/GO-2026-6948.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-6948
Aliases
Published
2026-11-23T20:02:42Z
Modified
2026-11-23T20:30:12Z
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
Details

Pocket ID: The client credentials grant allows any OIDC client to obtain tokens for arbitrary audiences in github.com/pocket-id/pocket-id/backend

Database specific
{
    "review_status": "UNREVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2026-6948"
}
References

Affected packages

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

Package

Name
github.com/pocket-id/pocket-id/backend
View open source insights on deps.dev
Purl
pkg:golang/github.com/pocket-id/pocket-id/backend

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20260622164202-8158452b3730

Ecosystem specific

{
    "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"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-6948.json"