Improper Restriction of Security Token Assignment Affecting org.webjars.npm:jsonwebtoken package, versions [0,]


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.11% (44th 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-JAVA-ORGWEBJARSNPM-3180025
  • published22 Dec 2022
  • disclosed22 Dec 2022
  • creditUnknown

Introduced: 22 Dec 2022

CVE-2022-23541  (opens in a new tab)
CWE-1259  (opens in a new tab)

How to fix?

There is no fixed version for org.webjars.npm:jsonwebtoken.

Overview

Affected versions of this package are vulnerable to Improper Restriction of Security Token Assignment via the secretOrPublicKey argument due to misconfigurations of the key retrieval function jwt.verify(). Exploiting this vulnerability might result in incorrect verification of forged tokens when tokens signed with an asymmetric public key could be verified with a symmetric HS256 algorithm.

Note: This vulnerability affects your application if it supports the usage of both symmetric and asymmetric keys in jwt.verify() implementation with the same key retrieval function.

CVSS Scores

version 3.1