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
// If token is nil, nothing has been parsed, if it's not, err will be a
// ValidatingError we want to ignore
iftoken==nil {
return"", errgo.Notef(err, "fail to parse jwt token")
}
The error is ignored, we only check for nil token. But from what I can see a token may be returned in case there is a jwt.ErrTokenSignatureInvalid error, hence accepting an invalid token.
There is a vulnerability in the github.com/golang-jwt/jwt/v4 v4.5.0 dependency
https://osv.dev/vulnerability/GHSA-29wx-vh33-7x7r
The vulnerability is fixed in the next patch version 4.5.1
This library is used in a few other projects, so after this is updated, the relevant projects should be updated too,
go-scalingo/go.mod
Line 7 in 69cac00
The text was updated successfully, but these errors were encountered: