{"id":"GHSA-8v5f-hp78-jgxq","aliases":["GHSA-8v5f-hp78-jgxq"],"related":[],"kind":"vulnerability","state":"published","title":"Signature Verification Bypass in jwt-simple","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2019-06-06T15:30:33.000Z","modified":"2020-08-31T18:37:26.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-347"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.3"}],"ecosystem":"npm","package":"jwt-simple","purl":"pkg:npm/jwt-simple","source":"ghsa"}],"references":[{"url":"https://github.com/hokaccha/node-jwt-simple/commit/ead36e1d687645da9c3be8befdaaef622ea33106","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/831","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8v5f-hp78-jgxq","url":"https://github.com/advisories/GHSA-8v5f-hp78-jgxq","licence":"CC-BY-4.0","modified":"2020-08-31T18:37:26.000Z"}],"updatedAt":"2026-11-25T22:56:44.798Z"}