Loading advisory.
Loading advisory.
Nil dereference in NATS JWT causing DoS of nats-server
(This advisory is canonically <https://advisories.nats.io/CVE/CVE-2020-26521.txt>)
Published 2020-11-06 07:35 UTC · Modified 2026-09-10 03:49 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/nats-io/jwt | Go | < 1.1.0 | 1.1.0 | go get github.com/nats-io/jwt@v1.1.0 |
| github.com/nats-io/nats-server/v2 | Go | < 2.1.9 | 2.1.9 | go get github.com/nats-io/nats-server/v2@v2.1.9 |
(This advisory is canonically https://advisories.nats.io/CVE/CVE-2020-26521.txt)
The NATS account system has an Operator trusted by the servers, which signs Accounts, and each Account can then create and sign Users within their account. The Operator should be able to safely issue Accounts to other entities which it does not fully trust.
A malicious Account could create and sign a User JWT with a state not created by the normal tooling, such that decoding by the NATS JWT library (written in Go) would attempt a nil dereference, aborting execution.
The NATS Server is known to be impacted by this.
all versions prior to 1.1.0
Version 2 prior to 2.1.9
Programs would nil dereference and panic, aborting execution by default.
Denial of Service caused by process termination
If your NATS servers do not trust any accounts which are managed by untrusted entities, then malformed User credentials are unlikely to be encountered.
Upgrade the JWT dependency in any application using it.
Upgrade the NATS server if using NATS Accounts.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.022 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.022 | first score | v2026.06.15 |