GHSA-c7hr-j4mj-j2w6
GitHub Security Advisory
Verification Bypass in jsonwebtoken
✓ GitHub Reviewed
CRITICAL
Has CVE
Advisory 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
npm
jsonwebtoken
Affected versions:
0
(fixed in 4.2.2)
Related CVEs
Key Information
9.0
/10
Dataset
Last updated: July 4, 2025 6:27 AM
Data from GitHub Advisory Database. This information is provided for research and educational purposes.