Improper Verification of Cryptographic Signature Affecting xmidt-org/cjwt package, versions [,2.3.0)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept

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-UNMANAGED-XMIDTORGCJWT-8545031
  • published20 Dec 2024
  • disclosed19 Dec 2024
  • creditLouis Nyffenegger

Introduced: 19 Dec 2024

NewCVE-2024-54150  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade xmidt-org/cjwt to version 2.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature due to the improper verification of the signature type used during the token validation process. An attacker can gain unauthorized access by crafting a token with a mismatched alg field, leading the server to use an incorrect verification method, such as treating a public key as an HMAC secret.

References

CVSS Scores

version 4.0
version 3.1