Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
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 applicationsUpgrade xmidt-org/cjwt
to version 2.3.0 or higher.
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.