hokaccha/node-jwt-simple

hokaccha/node-jwt-simple

Releases10
Frequency5 months 1 week
Last Release
Stars1.36K
JWT(JSON Web Token) encode and decode module for node.js

CVE History

CVEPublishedCVSS v3CVSS v2
4 MEDIUM

Since "algorithm" isn't enforced in jwt.decode()in jwt-simple 0.3.0 and earlier, a malicious user could choose what algorithm is sent sent to the server. If the server is expecting RSA but is sent HMAC-SHA with RSA's public key, the server will think the public key is actually an HMAC private key. This could be used to forge any data an attacker wants.