Skip to content
Heist/ feed
Back to feed
High

nats-server — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-27571

NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. The WebSockets handling of NATS messages handles compressed messages via the WebSockets negotiated compression. Prior to versions 2.11.2 and 2.12.3, the implementation bound the memory size of a NATS message but did not independently bound the memory consumption of the memory stream when constructing a NATS message which might then fail validation for size reasons. An attacker can use a compression bomb to cause excessive memory consumption, often resulting in the operating system terminating the server process. The use of compression is negotiated before authentication, so this does not require valid NATS credentials to exploit. The fix, present in versions 2.11.2 and 2.12.3, was to bounds the decompression to fail once the message was too large, instead of continuing on. The vulnerability only affects deployments which use WebSockets and which expose the network port to untrusted end-points.

Products
nats-server
Affected versions
2.10.24-1, 2.10.27-1, 2.10.27-1build1, 2.10.27-1ubuntu0.26.04.1~esm1, 2.10.3-1, 2.10.4-1, 2.10.7-1, 2.10.7-1ubuntu0.1, 2.10.7-1ubuntu0.2, 2.10.7-1ubuntu0.3, 2.14.1-1, 2.14.3-1, 2.9.19-1build1
Fixed versions
Not specified
CVEs
CVE-2026-27571
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:43 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-27571

core-osv · Original source

Published 24 Feb 2026, 17:29 UTC

NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. The WebSockets handling of NATS messages handles compressed messages via the WebSockets negotiated compression. Prior to versions 2.11.2 and 2.12.3, the implementation bound the memory size of a NATS message but did not independently bound the memory consumption of the memory stream when constructing a NATS message which might then fail validation for size reasons. An attacker can use a compression bomb to cause excessive memory consumption, often resulting in the operating system terminating the server process. The use of compression is negotiated before authentication, so this does not require valid NATS credentials to exploit. The fix, present in versions 2.11.2 and 2.12.3, was to bounds the decompression to fail once the message was too large, instead of continuing on. The vulnerability only affects deployments which use WebSockets and which expose the network port to untrusted end-points.

osv:UBUNTU-CVE-2026-27571

nats-server

Fixed versions: Not specified

nats-server

Fixed versions: Not specified

nats-server

Fixed versions: Not specified

nats-server

Fixed versions: Not specified

Complete source record
{
  "id": "09c85d377b3435a5543f3ddab0cda9f26da8382e0f8a2a0951012d615abc2999",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-27571",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-27571",
    "summary": "NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. The WebSockets handling of NATS messages handles compressed messages via the WebSockets negotiated compression. Prior to versions 2.11.2 and 2.12.3, the implementation bound the memory size of a NATS message but did not independently bound the memory consumption of the memory stream when constructing a NATS message which might then fail validation for size reasons. An attacker can use a compression bomb to cause excessive memory consumption, often resulting in the operating system terminating the server process. The use of compression is negotiated before authentication, so this does not require valid NATS credentials to exploit. The fix, present in versions 2.11.2 and 2.12.3, was to bounds the decompression to fail once the message was too large, instead of continuing on. The vulnerability only affects deployments which use WebSockets and which expose the network port to untrusted end-points.",
    "evidence": "osv:UBUNTU-CVE-2026-27571",
    "products": [
      {
        "name": {
          "value": "nats-server",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.9.19-1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.10.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.10.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.10.7-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.10.7-1ubuntu0.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.10.7-1ubuntu0.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.10.7-1ubuntu0.3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nats-server",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.10.24-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.10.27-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nats-server",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.10.27-1build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.14.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.14.3-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nats-server",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.10.27-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.10.27-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.10.27-1ubuntu0.26.04.1~esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-27571",
      "aliases": [
        "UBUNTU-CVE-2026-27571"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nats-server",
            "purl": "pkg:deb/ubuntu/nats-server?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "2.9.19-1build1",
            "2.10.3-1",
            "2.10.4-1",
            "2.10.7-1",
            "2.10.7-1ubuntu0.1",
            "2.10.7-1ubuntu0.2",
            "2.10.7-1ubuntu0.3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27571.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-nats-io-nats-server-dev",
                "binary_version": "2.10.7-1ubuntu0.3"
              },
              {
                "binary_name": "nats-server",
                "binary_version": "2.10.7-1ubuntu0.3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nats-server",
            "purl": "pkg:deb/ubuntu/nats-server?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.10.24-1",
            "2.10.27-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27571.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-nats-io-nats-server-dev",
                "binary_version": "2.10.27-1"
              },
              {
                "binary_name": "nats-server",
                "binary_version": "2.10.27-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nats-server",
            "purl": "pkg:deb/ubuntu/nats-server?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.10.27-1build1",
            "2.14.1-1",
            "2.14.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27571.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-nats-io-nats-server-dev",
                "binary_version": "2.14.3-1"
              },
              {
                "binary_name": "nats-server",
                "binary_version": "2.14.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nats-server",
            "purl": "pkg:deb/ubuntu/nats-server?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "2.10.27-1",
            "2.10.27-1build1",
            "2.10.27-1ubuntu0.26.04.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27571.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "golang-github-nats-io-nats-server-dev",
                "binary_version": "2.10.27-1ubuntu0.26.04.1~esm1"
              },
              {
                "binary_name": "nats-server",
                "binary_version": "2.10.27-1ubuntu0.26.04.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:49.042555544Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-27571"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-27571",
        "https://www.cve.org/CVERecord?id=CVE-2026-27571",
        "https://github.com/nats-io/nats-server/security/advisories/GHSA-qrvq-68c2-7grw",
        "https://github.com/nats-io/nats-server/commit/f77fb7c4535e6727cc1a2899cd8e6bbdd8ba2017",
        "https://github.com/nats-io/nats-server/releases/tag/v2.11.12",
        "https://github.com/nats-io/nats-server/releases/tag/v2.12.3"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-27571",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 359086,
  "published_at": "2026-02-24T17:29:00+00:00"
}