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 applicationsLearn about Use of a Broken or Risky Cryptographic Algorithm vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for fast-jwt.
fast-jwt is a Fast JSON Web Token implementation
Affected versions of this package are vulnerable to Use of a Broken or Risky Cryptographic Algorithm in the performDetectPublicKeyAlgorithms function due to improper handling of leading whitespace in PEM key strings. An attacker can gain unauthorized access and forge tokens by supplying a public key with leading whitespace, causing the key to be misclassified and allowing arbitrary payloads to be accepted as valid.
Note:
This vulnerability is caused by an incomplete fix for CVE-2023-48223.