Improper Verification of Cryptographic Signature Affecting json-jwt package, versions <1.15.3.1>=1.16.0, <1.16.6


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th 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-RUBY-JSONJWT-6139943
  • published27 Dec 2023
  • disclosed25 Dec 2023
  • creditP3ngu1nW

Introduced: 25 Dec 2023

CVE-2023-51774  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade json-jwt to version 1.15.3.1, 1.16.6 or higher.

Overview

json-jwt is a JSON Web Token and its family (JSON Web Signature, JSON Web Encryption and JSON Web Key) in Ruby.

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature due to a sign/encryption confusion attack via the JSON::JWT.decode function . An attacker can bypass identity checks by exploiting the confusion between signature and encryption mechanisms in the token verification process.

Note: Exploiting this vulnerability is possible if the developer uses the RS-* of signing algorithms and an attacker has access to the public key.

References

CVSS Scores

version 3.1