Versions 4.2.1 and earlier of jsonwebtoken are affected by a verification bypass vulnerability. This is a result of weak validation of the JWT algorithm type, occuring when an attacker is allowed to arbitrarily specify the JWT algorithm.
Update to version 4.2.2 or later.
{
"github_reviewed_at": "2020-06-16T21:30:27Z",
"severity": "CRITICAL",
"cwe_ids": [
"CWE-20"
],
"github_reviewed": true,
"nvd_published_at": null
}