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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (67th 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 Learn

Learn about Access Restriction Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMNATSIOJWTV2-1086587
  • published18 Mar 2021
  • disclosed17 Mar 2021
  • creditUnknown

Introduced: 17 Mar 2021

CVE-2021-3127  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade github.com/nats-io/jwt/v2 to version 2.0.1 or higher.

Overview

github.com/nats-io/jwt/v2 is a JWT implementation that uses nkeys to digitally sign JWT tokens

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.

CVSS Scores

version 3.1