CVE-2026-58250: Nats Leafnode Missing Nil Check

A nested pointer or interface field within the NATS connection structure is accessed without a prior nil check, which can lead to a runtime panic. Ensure that connection objects like `c.acc` and `c.leaf.remote` are validated before dereferencing them.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-58250-nats-leafnode-missing-nil-check --engine opengrep

Description

A nested pointer or interface field within the NATS connection structure is accessed without a prior nil check, which can lead to a runtime panic. Ensure that connection objects like `c.acc` and `c.leaf.remote` are validated before dereferencing them.