You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
External JWTs without an exp claim are accepted and never expire #4800
golang-jwt/jwt/v5 validates exp only when the claim is present, so a validly signed token without exp passes. Ext-jwt authentication (common/security_tokens.go:472) and enrollment with an external token (controller/model/enrollment_mod_token.go:300, :333) both go through these calls.
Impact
Once leaked, such a token can be replayed indefinitely to authenticate or enroll. It can only be invalidated by rotating the signing key or disabling the signer.
Signature, issuer and audience checks are not affected. Providers that follow OIDC always set exp; custom token minters may not.
Expected
Both calls pass jwt.WithExpirationRequired(), so a token without exp is rejected.
Activity