{"id":"CVE-2016-10555","published":"2018-05-31T20:00:00Z","modified":"2024-09-16T16:38:09Z","title":"Since \"algorithm\" isn't enforced in jwt.decode()in jwt-simple 0.3.0 and earlier, a malicious user could choose what…","vendor":"HackerOne","product":"jwt-simple node module","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04733,"percentile":0.92064,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://nodesecurity.io/advisories/87","tags":["x_refsource_MISC"]},{"url":"https://github.com/hokaccha/node-jwt-simple/pull/14","tags":["x_refsource_MISC"]},{"url":"https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/","tags":["x_refsource_MISC"]},{"url":"https://github.com/hokaccha/node-jwt-simple/pull/16","tags":["x_refsource_MISC"]}],"priority":{"score":23.4,"factors":[{"name":"EPSS percentile","points":18.41},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":3,"skipped":0,"earliest":"2021-06-14","earliestUrl":"https://github.com/CircuitSoul/poc-cve-2016-10555","repos":[{"name":"z-bool/Venom-JWT","url":"https://github.com/z-bool/Venom-JWT","stars":287,"created":"2025-01-27"},{"name":"CircuitSoul/poc-cve-2016-10555","url":"https://github.com/CircuitSoul/poc-cve-2016-10555","stars":1,"created":"2021-06-14"},{"name":"scent2d/PoC-CVE-2016-10555","url":"https://github.com/scent2d/PoC-CVE-2016-10555","stars":0,"created":"2022-01-02"}]},"first":{"date":"2021-06-14","source":"PoC-in-GitHub","url":"https://github.com/CircuitSoul/poc-cve-2016-10555"},"provenance":"source"},"vendorSlug":"hackerone","affectedVersions":[{"vendor":"HackerOne","product":"jwt-simple node module","versions":["<=0.3.0"]}],"affected":[{"ecosystem":"npm","package":"jwt-simple","vulnerableRanges":["<0.3.1"],"patched":["0.3.1"],"from":["GHSA-vgrx-w6rg-8fqf"],"provenance":"source"}],"summary":{"text":"The jwt-simple Node module's jwt.decode() function does not enforce the expected signing algorithm, which is a flaw in input validation of JWTs. An attacker can select the algorithm sent with a token, and where a server expects RSA but receives HMAC-SHA signed with the RSA public key, they can forge arbitrary token data, with no further conditions beyond sending a crafted token to the affected server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:12:09Z"},"euvd":{"id":"EUVD-2018-0779","exploited":false,"provenance":"source"}}