GoWorst: Critical4 advisories

github.com/nats-io/jwt: known vulnerabilities

github.com/nats-io/jwt has 4 reviewed security advisories in the GitHub Advisory Database — 2 critical, 2 high. The most recent was published 2022-02-15. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the github.com/nats-io/jwt versions running across your servers, containers and images, and ranks what to patch first.

How to fix github.com/nats-io/jwt

Upgrade github.com/nats-io/jwt to a release at or above the fixed version shown for each advisory below. For Go:

go get github.com/nats-io/jwt@1.2.3-0.20210314221642-a826c77dc9d2 && go mod tidy (check govulncheck)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (4)

nats-io/jwt not enforcing checking of Import token permissions Critical CWE-863 — Affected: up to and including 1.2.2. No fixed release is listed. Published 2022-02-15. GHSA-62mh-w5cv-p88c · CVE-2021-3127
Duplicate Advisory: Incorrect Access Control in github.com/nats-io/jwt and github.com/nats-io/nats-server/v2 High 7.5 CWE-284 CWE-863 — Affected: before 1.2.3-0.20210314221642-a826c77dc9d2. Fixed in 1.2.3-0.20210314221642-a826c77dc9d2. Published 2021-03-16. GHSA-9r5x-fjv3-q6h4 · CVE-2021-3127
Incorrect handling of credential expiry by /nats-io/nats-server Critical 9.8 CWE-798 — Affected: before 1.1.0. Fixed in 1.1.0. Published 2020-11-06. GHSA-4w5x-x539-ppf5 · CVE-2020-26892
Nil dereference in NATS JWT, DoS of nats-server High 7.5 CWE-476 — Affected: before 1.1.0. Fixed in 1.1.0. Published 2020-11-06. GHSA-h2fg-54x9-5qhq · CVE-2020-26521

Find github.com/nats-io/jwt across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.