{"schema_version":"1.3.1","id":"GO-2022-0386","modified":"2024-05-20T16:03:47Z","published":"2022-07-01T20:11:22Z","aliases":["CVE-2021-3127","GHSA-62mh-w5cv-p88c","GHSA-9r5x-fjv3-q6h4","GHSA-j756-f273-xhp4"],"summary":"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.\n\nValidation 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":[{"package":{"name":"github.com/nats-io/jwt","ecosystem":"Go"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.3-0.20210314221642-a826c77dc9d2"}]}],"ecosystem_specific":{"imports":[{"path":"github.com/nats-io/jwt","symbols":["Account.Validate","AccountClaims.Validate","ActivationClaims.Validate","Import.Validate","Imports.Validate"]}]}},{"package":{"name":"github.com/nats-io/jwt/v2","ecosystem":"Go"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.1"}]}],"ecosystem_specific":{"imports":[{"path":"github.com/nats-io/jwt/v2","symbols":["Account.Validate","AccountClaims.Validate","Import.Validate","Imports.Validate"]}]}}],"references":[{"type":"ADVISORY","url":"https://advisories.nats.io/CVE/CVE-2021-3127.txt"},{"type":"FIX","url":"https://github.com/nats-io/jwt/pull/149"}],"database_specific":{"url":"https://pkg.go.dev/vuln/GO-2022-0386","review_status":"REVIEWED"}}