{"id":"GHSA-9r5x-fjv3-q6h4","summary":"Duplicate Advisory: Incorrect Access Control in github.com/nats-io/jwt and github.com/nats-io/nats-server/v2","details":"## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-62mh-w5cv-p88c (for github.com/nats-io/jwt) and GHSA-j756-f273-xhp4 (for github.com/nats-io/nats-server). This link is maintained to preserve external references.\n\n## Original Description\nNATS Server (github.com/nats-io/nats-server/v2/server) 2.x before 2.2.0 and JWT library (github.com/nats-io/jwt/v2) before 2.0.1 have Incorrect Access Control because Import Token bindings are mishandled.","aliases":["BIT-nats-2021-3127","CVE-2021-3127","GHSA-62mh-w5cv-p88c","GHSA-j756-f273-xhp4","GO-2022-0386"],"modified":"2026-07-17T21:14:47.471676133Z","published":"2022-02-15T01:57:18Z","withdrawn":"2024-05-21T14:35:21Z","database_specific":{"cwe_ids":["CWE-284","CWE-863"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-05-12T20:34:10Z","nvd_published_at":"2021-03-16T20:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3127"},{"type":"WEB","url":"https://github.com/nats-io/jwt/pull/149"},{"type":"WEB","url":"https://github.com/nats-io/jwt/pull/149/commits/a826c77dc9d2671c961b75ceefdb439c41029866"},{"type":"WEB","url":"https://github.com/nats-io/nats-server/commit/423b79440c80c863de9f4e20548504e6c5d5e403"},{"type":"WEB","url":"https://advisories.nats.io/CVE/CVE-2021-3127.txt"},{"type":"PACKAGE","url":"https://github.com/nats-io/jwt"}],"affected":[{"package":{"name":"github.com/nats-io/jwt/v2","ecosystem":"Go","purl":"pkg:golang/github.com/nats-io/jwt/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-9r5x-fjv3-q6h4/GHSA-9r5x-fjv3-q6h4.json"}},{"package":{"name":"github.com/nats-io/nats-server/v2","ecosystem":"Go","purl":"pkg:golang/github.com/nats-io/nats-server/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.2.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-9r5x-fjv3-q6h4/GHSA-9r5x-fjv3-q6h4.json"}},{"package":{"name":"github.com/nats-io/jwt","ecosystem":"Go","purl":"pkg:golang/github.com/nats-io/jwt"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.3-0.20210314221642-a826c77dc9d2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-9r5x-fjv3-q6h4/GHSA-9r5x-fjv3-q6h4.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}