# GHSA-G33F-6538-GRXH: Pre-auth panic and server hang via malformed JWT issuer (missing Ed25519 length check in nkeys)

- Database: GitHub
- Severity: CVSS 7.5 (High)
- Published: 2026-06-29
- Modified: 2026-06-30

## Tracked as

- [CVE-2026-58212](https://cve.now/CVE-2026-58212.md): CVE-2026-58212

## Affected versions

- github.com/nats-io/nats-server/v2 (Go): through 2.12.9

## Description

### Background

NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT and edge computing.

The NATS Server can run in operator mode, deriving client identities and permissions from JWT credentials signed with NKEYs.

### Problem Description

An unauthenticated client could cause an operator-mode NATS Server to panic while processing a client JWT before authentication completed.

The issue involved accepting a truncated public account key, which could later reach Ed25519 signature verification with an invalid length. The malformed key was taken from JWT claims processed during authentication before a client identity had been established.

### Affected Versions

Versions v2.14.1, v2.12.9 and below are vulnerable. The issue is fixed in v2.14.2 and v2.12.10.

### Workarounds

No known workaround for operator-mode deployments using JWT authentication. Upgrade to a fixed release.

Deployments not using operator-mode JWT authentication are not affected by this issue.

### References

 * GHSA advisory: <https://github.com/nats-io/nats-server/security/advisories/GHSA-g33f-6538-grxh>
 * Credit: @queencitycyber

## References

- https://github.com/nats-io/nats-server/security/advisories/GHSA-g33f-6538-grxh

Page: https://cve.now/GHSA-G33F-6538-GRXH

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
