Access Restriction Bypass Affecting github.com/nats-io/nats-server/v2/server package, versions <2.2.0


0.0
medium

Snyk CVSS

    Attack Complexity High
    Confidentiality High

    Threat Intelligence

    EPSS 0.26% (66th percentile)
Expand this section
NVD
7.5 high

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 ID SNYK-GOLANG-GITHUBCOMNATSIONATSSERVERV2SERVER-1086586
  • published 18 Mar 2021
  • disclosed 17 Mar 2021
  • credit Unknown

How to fix?

Upgrade github.com/nats-io/nats-server/v2/server to version 2.2.0 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 Access Restriction Bypass. This is due to mishandling of Import Token bindings.

As a result, any account can take an Import Token used by any other account and re-use it for themselves because the binding to the importing account is not rejected, and use it to import any Subject from the Exporting account.