VDB

CVE-2021-3127

CVE-2021-3127 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
github.com/nats-io/jwtGo Modulesv2.0.1, 2.0.1, 1.2.3-0.20210314221642-a826c77dc9d2
github.com/nats-io/nats-server/v2/serverGo Modules2.2.0
github.com/nats-io/jwt/v2Go Modules2.0.1
nats_servernats2.2.0
nats-serverlinuxfoundation2.2.0

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score
1.45%
73.4th percentile

Affected products

VendorProductVersions
natsnats_server2.0.0
linuxfoundationnats-server2.0.0
natsjwt_library0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›