Description
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.
Metrics
CVSS 3.0 6.5/10
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| HackerOne | jwt-simple node module | <=0.3.0 |
References
- https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/Broken Link, Third Party Advisory
- https://github.com/hokaccha/node-jwt-simple/pull/14Issue Tracking, Third Party Advisory
- https://github.com/hokaccha/node-jwt-simple/pull/16Issue Tracking, Third Party Advisory
- https://nodesecurity.io/advisories/87Third Party Advisory
- https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/Broken Link, Third Party Advisory
- https://github.com/hokaccha/node-jwt-simple/pull/14Issue Tracking, Third Party Advisory
- https://github.com/hokaccha/node-jwt-simple/pull/16Issue Tracking, Third Party Advisory
- https://nodesecurity.io/advisories/87Third Party Advisory
Timeline
- Published
- May 31, 2018
- Last modified
- Jun 17, 2026
- NVD status
- Modified