Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/nats-io/jwt
  4. ›
  5. CVE-2020-26521

CVE-2020-26521: Nil dereference in NATS JWT, DoS of nats-server

February 11, 2022 (updated October 3, 2025)

The JWT library in NATS nats-server before 2.1.9 allows a denial of service (a nil dereference in Go code).

References

  • advisories.nats.io/CVE/CVE-2020-26521.txt
  • github.com/advisories/GHSA-h2fg-54x9-5qhq
  • github.com/nats-io/jwt
  • github.com/nats-io/jwt/pull/107
  • github.com/nats-io/jwt/security/advisories/GHSA-h2fg-54x9-5qhq
  • github.com/nats-io/nats-server/commit/9ff8bcde2e46009e98bd9e88f598af355f62c168
  • github.com/nats-io/nats-server/commits/master
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI
  • nvd.nist.gov/vuln/detail/CVE-2020-26521
  • pkg.go.dev/vuln/GO-2022-0402

Code Behaviors & Features

Detect and mitigate CVE-2020-26521 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.0

Fixed versions

  • 1.1.0

Solution

Upgrade to version 1.1.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

go/github.com/nats-io/jwt/CVE-2020-26521.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 25 Oct 2025 12:19:35 +0000.