GitHub Advisory Database
GHSA-9r5x-fjv3-q6h4
Duplicate Advisory: Incorrect Access Control in github.com/nats-io/jwt and github.com/nats-io/nats-server/v2
This advisory was withdrawn on 21 May 2024.
Details
Duplicate Advisory
This 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.
Original Description
NATS 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/nats-io/jwt/v2 | All versions before 2.0.1 (fixed in 2.0.1) |
| Go | github.com/nats-io/nats-server/v2 | All versions before 2.2.0 (fixed in 2.2.0) |
| Go | github.com/nats-io/jwt | All versions before 1.2.3-0.20210314221642-a826c77dc9d2 (fixed in 1.2.3-0.20210314221642-a826c77dc9d2) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3127
- https://github.com/nats-io/jwt/pull/149
- https://github.com/nats-io/jwt/pull/149/commits/a826c77dc9d2671c961b75ceefdb439c41029866
- https://github.com/nats-io/nats-server/commit/423b79440c80c863de9f4e20548504e6c5d5e403
- https://advisories.nats.io/CVE/CVE-2021-3127.txt
- https://github.com/nats-io/jwt