Advisory

GO-2022-0380

Also known as: CVE-2020-26892, GHSA-2c64-vj8g-vwrq, GHSA-4w5x-x539-ppf5

Summary

Incorrect handling of credential expiry in github.com/nats-io/jwt

Details

The AccountClaims.IsRevoked and Export.IsRevoked functions improperly validate expired credentials using the current system time rather than the issue time of the JWT to be tested.

These functions cannot be used properly. Newer versions of the jwt package provide an IsClaimRevoked method which performs correct validation. In these versions, the IsRevoked method always return true.

Severity

Not rated by the source.

Dates

Published
2022-07-15 23:29 UTC
Modified
2026-02-04 04:14 UTC

Affected packages and fixes

github.com/nats-io/jwt

Go · All systems

Affected

  • introduced 0, fixed 1.1.0 (semver)

Fixed versions

1.1.0

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