Improper Verification of Cryptographic Signature Affecting json-jwt package, versions <1.15.3.1 >=1.16.0, <1.16.6
Threat Intelligence
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-RUBY-JSONJWT-6139943
- published 27 Dec 2023
- disclosed 25 Dec 2023
- credit P3ngu1nW
Introduced: 25 Dec 2023
CVE-2023-51774 Open this link in a new tabHow 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.