---
id: CVE-2020-28466
aliases:
  - GHSA-m4jx-6526-vvhm
  - BIT-nats-2020-28466
  - GO-2022-0855
  - SNYK-GOLANG-GITHUBCOMNATSIONATSSERVERSERVER-1042967
title: Denial of service in github.com/nats-io/nats-server/server
summary: Denial of service in github.com/nats-io/nats-server/server
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: nats-io
product: github.com/nats-io/nats-server
ecosystem: go
affected:
  - github.com/nats-io/nats-server < 2.2.0
  - github.com/nats-io/nats-server/v2 < 2.2.0
patched:
  - github.com/nats-io/nats-server 2.2.0
  - github.com/nats-io/nats-server/v2 2.2.0
published: '2022-02-15'
updated: '2026-07-08'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-m4jx-6526-vvhm'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2020-28466'
  - url: 'https://github.com/nats-io/nats-server/pull/1731'
  - url: >-
      https://github.com/nats-io/nats-server/pull/1731/commits/2e3c22672936f4980d343fb1d328b38919e74796
  - url: 'https://pkg.go.dev/vuln/GO-2022-0855'
  - url: 'https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMNATSIONATSSERVERSERVER-1042967'
  - url: 'http://www.openwall.com/lists/oss-security/2021/03/16/1'
  - url: 'http://www.openwall.com/lists/oss-security/2021/03/16/2'
tags:
  - osv
  - go
epss: 0.03729
epssPercentile: 0.89389
ingestedAt: '2026-07-09T18:56:36.605Z'
---

## Overview

This affects all versions of package github.com/nats-io/nats-server/server. Untrusted accounts are able to crash the server using configs that represent a service export/import cycles. Disclaimer from the maintainers - Running a NATS service which is exposed to untrusted users presents a heightened risk. Any remote execution flaw or equivalent seriousness, or denial-of-service by unauthenticated users, will lead to prompt releases by the NATS maintainers. Fixes for denial of service issues with no threat of remote execution, when limited to account holders, are likely to just be committed to the main development branch with no special attention. Those who are running such services are encouraged to build regularly from git.

## Affected packages

- `github.com/nats-io/nats-server < 2.2.0`
- `github.com/nats-io/nats-server/v2 < 2.2.0`

## Remediation

Upgrade to a patched release:

- `github.com/nats-io/nats-server 2.2.0`
- `github.com/nats-io/nats-server/v2 2.2.0`
