GitHub Advisoryadvisory · npm
GHSA-c7hr-j4mj-j2w6 Verification Bypass in jsonwebtoken
CRITICAL
Official page ↗
- Aliases
- CVE-2015-9235
- Ecosystem
- npm
- Packages
- jsonwebtoken
- Severity
- Critical
- Weaknesses
- CWE-20
- Reviewed
- 2020-06-16
Affected packages
• npm jsonwebtoken: < 4.2.2 → fixed in 4.2.2
Description
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.
Related
Alias · CVE (1)
- CVE-2015-9235 In jsonwebtoken node module before 4.2.2 it is possible for an attacker to bypass verification when a token digitally signed with an… vulnerability
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-9235 advisory
- https://github.com/auth0/node-jsonwebtoken/commit/1bb584bc382295eeb7ee8c4452a673a77a68b687 web
- https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries web
- https://github.com/advisories/GHSA-c7hr-j4mj-j2w6 advisory
- https://www.npmjs.com/advisories/17 web
- https://www.timmclean.net/2015/02/25/jwt-alg-none.html web