Allocation of Resources Without Limits or Throttling Affecting github.com/nats-io/nats-server/v2/server package, versions <2.11.12>=2.12.0-RC.1 <2.12.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.48% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMNATSIONATSSERVERV2SERVER-15347992
  • published25 Feb 2026
  • disclosed24 Feb 2026
  • creditPavel Kohout

Introduced: 24 Feb 2026

CVE-2026-27571  (opens in a new tab)
CWE-409  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade github.com/nats-io/nats-server/v2/server to version 2.11.12, 2.12.3 or higher.

Overview

github.com/nats-io/nats-server/v2/server is an A simple, secure and performant communications system for digital systems, services and devices.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the WebSockets handling of NATS compressed messages. An attacker can cause excessive memory consumption, potentially leading to the termination of the server process by sending specially crafted compressed messages before authentication.

Note: This is only exploitable if WebSockets are enabled and the network port is exposed to untrusted endpoints.

CVSS Base Scores

version 4.0
version 3.1