{"id":"GHSA-8v5f-hp78-jgxq","summary":"Signature Verification Bypass in jwt-simple","details":"Versions of `jwt-simple` prior to 0.5.3 are vulnerable to Signature Verification Bypass. If no algorithm is specified in the `decode()` function, the packages uses the algorithm in the JWT to decode tokens. This allows an attacker to create a HS256 (symmetric algorithm) JWT with the server's public key as secret, and the package will verify it as HS256 instead of RS256 (asymmetric algorithm).\n\n\n## Recommendation\n\nUpgrade to version 0.5.3 or later.","modified":"2020-08-31T18:37:26Z","published":"2019-06-06T15:30:33Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-347"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2019-06-06T09:42:36Z"},"references":[{"type":"WEB","url":"https://github.com/hokaccha/node-jwt-simple/commit/ead36e1d687645da9c3be8befdaaef622ea33106"},{"type":"WEB","url":"https://www.npmjs.com/advisories/831"}],"affected":[{"package":{"name":"jwt-simple","ecosystem":"npm","purl":"pkg:npm/jwt-simple"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.5.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/06/GHSA-8v5f-hp78-jgxq/GHSA-8v5f-hp78-jgxq.json"}}],"schema_version":"1.9.0"}