{"id":"GO-2022-0386","revision":"39d2b8ca8afc48c8beee23f54808d945","records":[{"revision":"39d2b8ca8afc48c8beee23f54808d945","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2022-0386","aliases":["BIT-nats-2021-3127","CVE-2021-3127","GHSA-62mh-w5cv-p88c","GHSA-9r5x-fjv3-q6h4","GHSA-j756-f273-xhp4"],"title":"Import token permissions checking not enforced in github.com/nats-io/jwt","description":"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.","state":0,"publishedAt":"2022-07-01T20:11:22+00:00","modifiedAt":"2026-02-04T03:17:43.247203+00:00","affected":[{"ecosystem":"Go","name":"github.com/nats-io/jwt","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.2.3-0.20210314221642-a826c77dc9d2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/nats-io/jwt/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://advisories.nats.io/CVE/CVE-2021-3127.txt","https://github.com/nats-io/jwt/pull/149"],"sourceUrl":"https://osv.dev/vulnerability/GO-2022-0386","license":"OSV · upstream source license applies","key":"osv:GO-2022-0386","identifiers":["GO-2022-0386","BIT-nats-2021-3127","CVE-2021-3127","GHSA-62mh-w5cv-p88c","GHSA-9r5x-fjv3-q6h4","GHSA-j756-f273-xhp4"]},"retained":false,"historicalAffected":[]}],"coverage":[]}