Live threats

All CVEs / Linuxfoundation

CVE-2021-3127Linuxfoundation Nats-server

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nats-server.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
linuxfoundationnats-server≥ 2.0.0 < 2.2.0
natsjwt_library< 2.0.1

Official sources

References

Links published by the sources. Open them with care.