GHSA-3g5q-cfh2-cq67

Suggest an improvement
Source
https://github.com/advisories/GHSA-3g5q-cfh2-cq67
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-3g5q-cfh2-cq67/GHSA-3g5q-cfh2-cq67.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3g5q-cfh2-cq67
Aliases
Published
2026-12-01T21:20:07Z
Modified
2026-12-01T21:30:04Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H CVSS Calculator
Summary
NATS Server: Denial of service via repeated pre-authentication leafnode INFO messages
Details

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 supports leafnode connections between servers.

Problem Description

An unauthenticated peer with network access to a leafnode listener with compression enabled could crash the server during the pre-authentication leafnode handshake.

The issue occurs after repeated leafnode INFO protocol messages before a leafnode connection had completed authentication and account setup. Certain state expected later in the handshake could be nil and then later dereferenced, causing a process panic.

Affected Versions

Versions v2.12.7, v2.11.16 and below are vulnerable. The issue is fixed in v2.12.8 and v2.11.17.

Workarounds

Disabling leafnode compression can mitigate the issue until fixed versions are deployed.

Resources

Database specific
{
    "cwe_ids":  [
        "CWE-476"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-12-01T21:20:07Z",
    "nvd_published_at":  "2026-07-08T20:16:54Z",
    "severity":  "HIGH"
}
References

Affected packages

Go / github.com/nats-io/nats-server/v2

Package

Name
github.com/nats-io/nats-server/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/nats-io/nats-server/v2

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.11.17

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-3g5q-cfh2-cq67/GHSA-3g5q-cfh2-cq67.json"

Go / github.com/nats-io/nats-server/v2

Package

Name
github.com/nats-io/nats-server/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/nats-io/nats-server/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.12.0-RC.1
Fixed
2.12.8

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-3g5q-cfh2-cq67/GHSA-3g5q-cfh2-cq67.json"