Advisory

GO-2022-0386

Also known as: BIT-nats-2021-3127, CVE-2021-3127, GHSA-62mh-w5cv-p88c, GHSA-9r5x-fjv3-q6h4, GHSA-j756-f273-xhp4

Summary

Import token permissions checking not enforced in github.com/nats-io/jwt

Details

Import tokens valid for one account may be used for any other account.

Validation of Import token bindings incorrectly warns on mismatches, rather than rejecting the Goken. This permits a token for one account to be used for any other account.

Severity

Not rated by the source.

Dates

Published
2022-07-01 20:11 UTC
Modified
2026-02-04 03:17 UTC

Affected packages and fixes

github.com/nats-io/jwt

Go · All systems

Affected

  • introduced 0, fixed 1.2.3-0.20210314221642-a826c77dc9d2 (semver)

Fixed versions

1.2.3-0.20210314221642-a826c77dc9d2

Fix

  • Fixed version 1.2.3-0.20210314221642-a826c77dc9d2
    go get github.com/nats-io/[email protected]

github.com/nats-io/jwt/v2

Go · All systems

Affected

  • introduced 0, fixed 2.0.1 (semver)

Fixed versions

2.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences