{"id":"CVE-2020-26892","aliases":["DEBIAN-CVE-2020-26892","EUVD-2022-0821","GHSA-2c64-vj8g-vwrq","GHSA-4w5x-x539-ppf5","GO-2022-0380","UBUNTU-CVE-2020-26892"],"status":"published","title":"Incorrect handling of credential expiry by /nats-io/nats-server","description":"The JWT library in NATS nats-server before 2.1.9 has Incorrect Access Control because of how expired credentials are handled.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02328,"percentile":0.83639,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-284","CWE-798"],"published":"2020-11-06T07:36:45Z","modified":"2026-10-26T12:02:41Z","fixes":[{"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","fixed_in":["2.1.9"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/nats-io/jwt","fixed_in":["1.1.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"golang-github-nats-io-jwt","fixed_in":["2.2.0-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"golang-github-nats-io-jwt","fixed_in":["2.2.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"golang-github-nats-io-jwt","fixed_in":["2.2.0-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.9"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/nats-io/jwt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"golang-github-nats-io-jwt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"golang-github-nats-io-jwt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"golang-github-nats-io-jwt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0-1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.9"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/nats-io/jwt","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/nats-io/jwt","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"golang-github-nats-io-jwt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20181120.285cf2c-4"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"golang-github-nats-io-jwt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20181120.285cf2c-4.1"]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"linuxfoundation","product":"nats-server"}],"references":[{"url":"https://github.com/nats-io/nats-server/commits/master","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://www.openwall.com/lists/oss-security/2020/11/02/2","tags":["x_refsource_CONFIRM","x_transferred","Mailing List","Third Party Advisory","advisory","web","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-2c64-vj8g-vwrq","tags":["web"]},{"url":"https://github.com/nats-io/jwt/commit/e11ce317263cef69619fc1ca743b195d02aa1d8a","tags":["web","fix"]},{"url":"https://advisories.nats.io/CVE/CVE-2020-26892.txt","tags":["web","advisory","report"]},{"url":"https://github.com/advisories/GHSA-2c64-vj8g-vwrq"},{"url":"https://github.com/nats-io/jwt/security/advisories/GHSA-4w5x-x539-ppf5","tags":["web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26892","tags":["advisory"]},{"url":"https://github.com/nats-io/nats-server/commit/1e08b67f08e18cd844dce833a265aaa72500a12f","tags":["web"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0380","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI","tags":["web"]},{"url":"https://github.com/advisories/GHSA-4w5x-x539-ppf5"},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-26892","tags":["advisory"]},{"url":"https://github.com/nats-io/nats-server","tags":["package"]},{"url":"https://github.com/nats-io/jwt","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2020-26892","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-26892","tags":["report"]},{"url":"https://github.com/nats-io/jwt/pull/109","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-26892","description":"The JWT library in NATS nats-server before 2.1.9 has Incorrect Access Control because of how expired credentials are handled.","status":"published","published":"2020-11-06T07:36:45Z","modified":"2024-08-04T16:03:22.745Z","updated_at":"2026-11-02T14:35:46.129376Z"}],"euvd":[{"id":"EUVD-2022-0821","description":"The JWT library in NATS nats-server before 2.1.9 has Incorrect Access Control because of how expired credentials are handled.","status":"published","published":"2020-11-06T07:36:45Z","modified":"2024-08-04T16:03:22Z","updated_at":"2026-11-03T03:07:14.105511Z"}],"ghsa":[{"id":"GHSA-4w5x-x539-ppf5","title":"Incorrect handling of credential expiry by /nats-io/nats-server","description":"## Problem Description\n\nNATS nats-server through 2020-10-07 has Incorrect Access Control because of how expired credentials are handled.\n\nThe NATS accounts system has expiration timestamps on credentials; the \u003chttps://github.com/nats-io/jwt\u003e library had an API which encouraged misuse and an `IsRevoked()` method which misused its own API.\n\nA 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.\n\nThe CVE identifier should cover any application using the old JWT API, where the nats-server is one of those applications.\n\n\n## Affected versions\n\n#### JWT library\n\n * all versions prior to 1.1.0\n * fixed after nats-io/jwt PR 103 landed (2020-10-06)\n\n#### NATS Server\n\n * Version 2 prior to 2.1.9\n   + 2.0.0 through and including 2.1.8 are vulnerable.\n * fixed with nats-io/nats-server PRs 1632, 1635, 1645\n\n\n## Impact\n\nTime-based credential expiry did not work.\n\n\n## Workaround\n\nHave credentials which only expire after fixes can be deployed.\n\n\n## Solution\n\nUpgrade the JWT dependency in any application using it.\n\nUpgrade the NATS server if using NATS Accounts.","status":"published","published":"2022-02-11T23:42:20Z","modified":"2025-10-03T19:21:40Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-798"],"updated_at":"2026-11-02T14:38:59.83883Z"},{"id":"GHSA-2c64-vj8g-vwrq","title":"Incorrect handling of credential expiry by /nats-io/nats-server","description":"(This advisory is canonically https://advisories.nats.io/CVE/CVE-2020-26892.txt )\n\n## Problem Description\n\nNATS nats-server through 2020-10-07 has Incorrect Access Control because of how expired credentials are handled.\n\nThe NATS accounts system has expiration timestamps on credentials; the \u003chttps://github.com/nats-io/jwt\u003e library had an API which encouraged misuse and an `IsRevoked()` method which misused its own API.\n\nA 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.\n\nThe CVE identifier should cover any application using the old JWT API, where the nats-server is one of those applications.\n\n\n## Affected versions\n\n#### JWT library\n\n * all versions prior to 1.1.0\n * fixed after nats-io/jwt PR 103 landed (2020-10-06)\n\n#### NATS Server\n\n * Version 2 prior to 2.1.9\n   + 2.0.0 through and including 2.1.8 are vulnerable.\n * fixed with nats-io/nats-server PRs 1632, 1635, 1645\n\n\n## Impact\n\nTime-based credential expiry did not work.\n\n\n## Workaround\n\nHave credentials which only expire after fixes can be deployed.\n\n\n## Solution\n\nUpgrade the JWT dependency in any application using it.\n\nUpgrade the NATS server if using NATS Accounts.","status":"published","published":"2021-05-21T16:11:49Z","modified":"2025-10-03T19:22:02Z","cwes":["CWE-284"],"updated_at":"2026-11-02T14:38:59.83883Z"}],"nvd":[{"id":"CVE-2020-26892","description":"The JWT library in NATS nats-server before 2.1.9 has Incorrect Access Control because of how expired credentials are handled.","status":"published","published":"2020-11-06T08:15:13.61Z","modified":"2026-06-17T03:08:28.643Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-798"],"updated_at":"2026-11-02T14:06:21.80969Z"}],"osv":[{"id":"CVE-2020-26892","description":"The JWT library in NATS nats-server before 2.1.9 has Incorrect Access Control because of how expired credentials are handled.","status":"published","published":"2020-11-06T08:15:13.61Z","modified":"2026-10-20T10:52:58.366871521Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:16.248747Z"},{"id":"DEBIAN-CVE-2020-26892","description":"The JWT library in NATS nats-server before 2.1.9 has Incorrect Access Control because of how expired credentials are handled.","status":"published","published":"2020-11-06T08:15:13.61Z","modified":"2026-10-26T12:02:41.729251124Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:33.729655Z"},{"id":"GHSA-4w5x-x539-ppf5","title":"Incorrect handling of credential expiry by /nats-io/nats-server","description":"## Problem Description\n\nNATS nats-server through 2020-10-07 has Incorrect Access Control because of how expired credentials are handled.\n\nThe NATS accounts system has expiration timestamps on credentials; the \u003chttps://github.com/nats-io/jwt\u003e library had an API which encouraged misuse and an `IsRevoked()` method which misused its own API.\n\nA 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.\n\nThe CVE identifier should cover any application using the old JWT API, where the nats-server is one of those applications.\n\n\n## Affected versions\n\n#### JWT library\n\n * all versions prior to 1.1.0\n * fixed after nats-io/jwt PR 103 landed (2020-10-06)\n\n#### NATS Server\n\n * Version 2 prior to 2.1.9\n   + 2.0.0 through and including 2.1.8 are vulnerable.\n * fixed with nats-io/nats-server PRs 1632, 1635, 1645\n\n\n## Impact\n\nTime-based credential expiry did not work.\n\n\n## Workaround\n\nHave credentials which only expire after fixes can be deployed.\n\n\n## Solution\n\nUpgrade the JWT dependency in any application using it.\n\nUpgrade the NATS server if using NATS Accounts.","status":"published","published":"2022-02-11T23:42:20Z","modified":"2026-09-10T03:49:11.546539514Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-798"],"updated_at":"2026-11-02T15:46:37.528068Z"},{"id":"UBUNTU-CVE-2020-26892","description":"The JWT library in NATS nats-server before 2.1.9 has Incorrect Access Control because of how expired credentials are handled.","status":"published","published":"2020-11-06T08:15:00Z","modified":"2025-10-24T04:48:49Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:24.541803Z"},{"id":"GHSA-2c64-vj8g-vwrq","title":"Incorrect handling of credential expiry by /nats-io/nats-server","description":"(This advisory is canonically https://advisories.nats.io/CVE/CVE-2020-26892.txt )\n\n## Problem Description\n\nNATS nats-server through 2020-10-07 has Incorrect Access Control because of how expired credentials are handled.\n\nThe NATS accounts system has expiration timestamps on credentials; the \u003chttps://github.com/nats-io/jwt\u003e library had an API which encouraged misuse and an `IsRevoked()` method which misused its own API.\n\nA 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.\n\nThe CVE identifier should cover any application using the old JWT API, where the nats-server is one of those applications.\n\n\n## Affected versions\n\n#### JWT library\n\n * all versions prior to 1.1.0\n * fixed after nats-io/jwt PR 103 landed (2020-10-06)\n\n#### NATS Server\n\n * Version 2 prior to 2.1.9\n   + 2.0.0 through and including 2.1.8 are vulnerable.\n * fixed with nats-io/nats-server PRs 1632, 1635, 1645\n\n\n## Impact\n\nTime-based credential expiry did not work.\n\n\n## Workaround\n\nHave credentials which only expire after fixes can be deployed.\n\n\n## Solution\n\nUpgrade the JWT dependency in any application using it.\n\nUpgrade the NATS server if using NATS Accounts.","status":"published","published":"2021-05-21T16:11:49Z","modified":"2026-09-10T03:49:04.052350741Z","cwes":["CWE-284"],"updated_at":"2026-11-02T15:46:34.338541Z"},{"id":"GO-2022-0380","title":"Incorrect handling of credential expiry in github.com/nats-io/jwt","description":"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.\n\nThese 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.","status":"published","published":"2022-07-15T23:29:36Z","modified":"2026-02-04T04:14:02.578523Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
