ADVISORIES

Go Vulnerability Database

GO-2020-0017

Authorization bypass in github.com/dgrijalva/jwt-go

Details

If a JWT contains an audience claim with an array of strings, rather than a single string, and MapClaims.VerifyAudience is called with req set to false, then audience verification will be bypassed, allowing an invalid set of audiences to be provided.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/dgrijalva/jwt-go
From 0.0.0-20150717181359-44718f8a89b0, no fix listed
Gogithub.com/dgrijalva/jwt-go/v4
All versions before 4.0.0-preview1 (fixed in 4.0.0-preview1)

References