CVE-2020-26521 json
Nil dereference in NATS JWT causing DoS of nats-server
published 2020-11-06 6 y ago modified 2026-09-10 1 mo ago also GHSA-h2fg-54x9-5qhq , GHSA-hmm9-r2m2-qg9w , GO-2022-0402 , EUVD-2022-1028
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
The JWT library in NATS nats-server before 2.1.9 allows a denial of service (a nil dereference in Go code).
Patch / fix
- go github.com/nats-io/nats-server/v2 2.1.9
- go github.com/nats-io/jwt 1.1.0
- linuxfoundation nats-server 2.1.9
- golang-github-nats-io-jwt Debian 14, Debian 13, Debian 12 2.2.0-1
debian advisories DEBIAN-CVE-2020-26521
- github.com/nats-io/nats-server@9ff8bcd commit
- github.com/nats-io/jwt#107 pull request
- github.com/nats-io/nats-server/commits/master advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-26521 updated cvss 7.5
nats-server: nil dereferences in JWT library causing Go panic
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.16% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/nats-io/nats-server/v2 | <2.1.9 |
2.1.9 |
| go | github.com/nats-io/jwt | <1.1.0 |
1.1.0 |
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
References
-
github.com
/nats-io/nats-server/commits/master
web, patch, third-party-advisory
-
github.com
/nats-io/jwt/pull/107
web, patch
-
github.com
/nats-io/nats-server/commit/9ff8bcde2e46009e98bd9e88f598af355f62c168
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI/
vendor-advisory
-
openwall.com
/lists/oss-security/2020/11/02/2
web, mailing-list, third-party-advisory
-
github.com
/nats-io/nats-server/security/advisories/GHSA-hmm9-r2m2-qg9w
web
-
nvd.nist.gov
/vuln/detail/CVE-2020-26521
advisory
-
advisories.nats.io
/CVE/CVE-2020-26521.txt
web
-
github.com
/nats-io/nats-server
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/VT67XCLIIBYRT762SVFBYFFTQFVSM3SI
web
-
openwall.com
/lists/oss-security/2020/11/02/2
web
-
github.com
/nats-io/jwt/security/advisories/GHSA-h2fg-54x9-5qhq
web
-
github.com
/nats-io/jwt
package
-
pkg.go.dev
/vuln/GO-2022-0402
web
Sources
- CVE List CVE-2020-26521
- GitHub Advisory GHSA-hmm9-r2m2-qg9w
- GitHub Advisory GHSA-h2fg-54x9-5qhq
- NVD CVE-2020-26521
- OSV GO-2022-0402
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.