ADVISORIES

Go Vulnerability Database

GO-2022-0386

Import token permissions checking not enforced in github.com/nats-io/jwt

Details

Import tokens valid for one account may be used for any other account.

Validation of Import token bindings incorrectly warns on mismatches, rather than rejecting the Goken. This permits a token for one account to be used for any other account.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/nats-io/jwt
All versions before 1.2.3-0.20210314221642-a826c77dc9d2 (fixed in 1.2.3-0.20210314221642-a826c77dc9d2)
Gogithub.com/nats-io/jwt/v2
All versions before 2.0.1 (fixed in 2.0.1)

References