Security Advisories (1)
CVE-2026-75866 (2026-08-22)

Punk::OAuth2::Server versions through 0.03 for Perl issue access tokens outside a client's registered scopes and grant types because no authorization path reads them. Punk::OAuth2::Server::Store registers scopes and grant_types per client and documents both as client registration. token dispatches on the grant_type in the request body, so a client registered for authorization_code alone can ask for client_credentials, and that arm passes the requested scope straight to the minter, which signs it into the at+jwt access token. authorize copies the query scope into the authorization code record without comparing it against the registration, leaving the optional consent hook as the only check between an arbitrary scope and the issued code. redirect_uris on the same client row is read and enforced. A registered client can obtain a correctly signed token carrying any scope it names, and a resource server running Punk::OAuth2::Checker accepts that token and honours the scope. A client registered without a secret authenticates on its client_id alone, so anyone who knows that identifier can request one.

Changes for version 0.03 - 2026-08-18

  • SECURITY: fix an open redirect in same_origin_path (CVE-2026-75628) reported by cpansec. The guard rejected a leading "//" and any CR/LF, but a browser removes TAB/CR/LF from a URL before it parses it and treats "\" as "/" under a special scheme, so "/\evil.example" and "/<TAB>/evil.example" both survived the check and then resolved to another host. A ?return= destination that a user controls could therefore redirect off-site after a successful login.
  • same_origin_path now rejects every C0 control byte and DEL, and rejects a backslash anywhere in the path, rather than trying to enumerate the bytes a URL parser might drop. Paths that need a backslash must percent-encode it as %5C.

Modules

OAuth2 and OpenID Connect for Punk applications
resource server bearer token checkers
a cached JWKS key set
provider presets for Punk::OAuth2
one configured OAuth2/OIDC provider
an OAuth2/OIDC authorization server
DBI storage for the authorization server
a token-endpoint response
shared helpers for Punk::OAuth2
social login for Punk applications