ADVISORIES

GitHub Advisory Database

GHSA-c7hr-j4mj-j2w6

Verification Bypass in jsonwebtoken

Critical CVE-2015-9235

Details

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.

Recommendation

Update to version 4.2.2 or later.

Affected packages

EcosystemPackageAffected versions
npmjsonwebtoken
All versions before 4.2.2 (fixed in 4.2.2)

References