(This advisory is canonically https://advisories.nats.io/CVE/CVE-2020-26892.txt )
NATS nats-server through 2020-10-07 has Incorrect Access Control because of how expired credentials are handled.
The NATS accounts system has expiration timestamps on credentials; the https://github.com/nats-io/jwt library had an API which encouraged misuse and an IsRevoked()
method which misused its own API.
A new IsClaimRevoked()
method has correct handling and the nats-server has been updated to use this. The old IsRevoked()
method now always returns true and other client code will have to be updated to avoid calling it.
The CVE identifier should cover any application using the old JWT API, where the nats-server is one of those applications.
Time-based credential expiry did not work.
Have credentials which only expire after fixes can be deployed.
Upgrade the JWT dependency in any application using it.
Upgrade the NATS server if using NATS Accounts.
{ "nvd_published_at": null, "cwe_ids": [ "CWE-284" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2021-05-20T22:19:22Z" }