Description
In jsonwebtoken node module before 4.2.2 it is possible for an attacker to bypass verification when a token digitally signed with an asymmetric key (RS/ES family) of algorithms but instead the attacker send a token digitally signed with a symmetric algorithm (HS* family).
Remediation
References
https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/
https://github.com/auth0/node-jsonwebtoken/commit/1bb584bc382295eeb7ee8c4452a673a77a68b687
https://nodesecurity.io/advisories/17
https://www.timmclean.net/2015/02/25/jwt-alg-none.html
Related Vulnerabilities
CVE-2017-15686 Vulnerability in maven package org.craftercms:crafter-studio
CVE-2021-27578 Vulnerability in maven package org.apache.zeppelin:zeppelin
CVE-2016-6809 Vulnerability in maven package org.apache.tika:tika-parsers
CVE-2023-50732 Vulnerability in maven package org.xwiki.platform:xwiki-platform-index-tree-macro
CVE-2015-5351 Vulnerability in maven package org.apache.tomcat:tomcat