CVE-2021-3127
nats-io/jwt not enforcing checking of Import token permissions
Record from NVD · Published March 16, 2021
github.com/nats-io/jwt is fixed in v2.0.1, 2.0.1 and 1.2.3-0.20210314221642-a826c77dc9d2 (Go Modules)
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.
EPSS 1.45% · 73.4th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/nats-io/jwt | Go Modules | v2.0.1, 2.0.1, 1.2.3-0.20210314221642-a826c77dc9d2 |
| github.com/nats-io/nats-server/v2/server | Go Modules | 2.2.0 |
| github.com/nats-io/jwt/v2 | Go Modules | 2.0.1 |
| nats_server | nats | 2.2.0 |
| nats-server | linuxfoundation | 2.2.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| nats | nats_server | 2.0.0 |
| linuxfoundation | nats-server | 2.0.0 |
| nats | jwt_library | 0 |
Timeline
- Mar 16, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Apr 12, 2022 CVE Updated
- Mar 18, 2026 Security Advisory
- Aug 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-3127
vulnetix vdb fixes CVE-2021-3127
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3127/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart