CriticalGHSA-c7hr-j4mj-j2w6CVE-2015-9235

Verification Bypass in jsonwebtoken

Published 9 Oct 2018 · Updated 10 Sept 2026

Affected package

Affected
<4.2.2
Fixed in
4.2.2
Update to the fixed version for your release line, for example:npm install jsonwebtoken@4.2.2

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.

Is GHSA-c7hr-j4mj-j2w6 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected jsonwebtoken, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.