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

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.16%, higher than 82% of CVEs (2026-12-01)
- Published: 2020-11-06T07:35:12.000Z
- Modified: 2026-09-10T03:49:14.679Z
- Also known as: GHSA-h2fg-54x9-5qhq, GHSA-hmm9-r2m2-qg9w, GO-2022-0402
- Related: CGA-2v6p-mg24-q4w7
- Weaknesses: CWE-476
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/nats-io/jwt (Go): before 1.1.0
- github.com/nats-io/nats-server/v2 (Go): before 2.1.9
- linuxfoundation nats-server: before 2.1.9
- fedoraproject fedora: 33

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/nats-io/nats-server/commits/master> (patch, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2020/11/02/2> (mailing-list, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI/> (vendor-advisory)
- <https://github.com/nats-io/jwt/security/advisories/GHSA-h2fg-54x9-5qhq> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26521> (advisory)
- <https://github.com/nats-io/jwt/pull/107> (fix, web)
- <https://github.com/nats-io/nats-server/commit/9ff8bcde2e46009e98bd9e88f598af355f62c168> (web)
- <https://advisories.nats.io/CVE/CVE-2020-26521.txt> (web)
- <https://github.com/nats-io/jwt> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI> (web)
- <https://pkg.go.dev/vuln/GO-2022-0402> (web)
- <https://github.com/nats-io/nats-server/security/advisories/GHSA-hmm9-r2m2-qg9w> (web)
- <https://github.com/nats-io/nats-server> (package)
- <https://www.openwall.com/lists/oss-security/2020/11/02/2> (web)

## Sources

- CVE List: [CVE-2020-26521](https://www.cve.org/CVERecord?id=CVE-2020-26521), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-h2fg-54x9-5qhq](https://github.com/advisories/GHSA-h2fg-54x9-5qhq), CC-BY-4.0, modified 2026-09-10
- GitHub Advisory Database: [GHSA-hmm9-r2m2-qg9w](https://github.com/advisories/GHSA-hmm9-r2m2-qg9w), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2022-0402](https://pkg.go.dev/vuln/GO-2022-0402), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2020-26521](https://nvd.nist.gov/vuln/detail/CVE-2020-26521), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-26521 · Whole record: https://cve.day/CVE-2020-26521.json · Rebuilt by cve.day 2026-11-25T22:57:55.620Z
