CVE-2021-3127Linuxfoundation Nats-server
High 7.5 No auth needed
Follow: this CVE · Linuxfoundation · Linuxfoundation Nats-server We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 74
- Auth required
- No
- Published
- Mar 16, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-755
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings are mishandled.
What to do
- Apply the vendor's security update for Nats-server.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/nats-io/jwt |
≤ 1.2.2 |
no fixed version | — |
| Go | github.com/nats-io/jwt |
< 1.2.3-0.20210314221642-a826c77dc9d2 |
1.2.3-0.20210314221642-a826c77dc9d2 |
go get github.com/nats-io/jwt@v1.2.3-0.20210314221642-a826c77dc9d2 |
| Go | github.com/nats-io/jwt/v2 |
< 2.0.1 |
2.0.1 |
go get github.com/nats-io/jwt/v2@v2.0.1 |
| Go | github.com/nats-io/jwt/v2 |
< 2.0.1 |
2.0.1 |
go get github.com/nats-io/jwt/v2@v2.0.1 |
| Go | github.com/nats-io/nats-server/v2 |
< 2.2.0 |
2.2.0 |
go get github.com/nats-io/nats-server/v2@v2.2.0 |
Per OSV / GitHub Advisories (GHSA-62mh-w5cv-p88c, GO-2022-0386, GHSA-j756-f273-xhp4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| linuxfoundation | nats-server | ≥ 2.0.0 < 2.2.0 |
| nats | jwt_library | < 2.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- advisories.nats.io Exploit Vendor Advisory