{"schemaVersion":3,"id":"CVE-2022-23539","aliases":["GHSA-8cf7-32gw-wr33"],"status":"published","duplicateOf":null,"title":null,"description":"Versions `<=8.5.1` of `jsonwebtoken` library could be misconfigured so that legacy, insecure key types are used for signature verification. For example, DSA keys could be used with the RS256 algorithm. You are affected if you are using an algorithm and a key type other than a combination listed in the GitHub Security Advisory as unaffected. This issue has been fixed, please update to version 9.0.0. This version validates for asymmetric key type and algorithm combinations. Please refer to the above mentioned algorithm / key type combinations for the valid secure configuration. After updating to version 9.0.0, if you still intend to continue with signing or verifying tokens using invalid key type/algorithm value combinations, you’ll need to set the `allowInvalidAsymmetricKeyTypes` option  to `true` in the `sign()` and/or `verify()` functions.","dates":{"published":"2022-12-22T23:20:47.855Z","modified":"2025-04-15T13:31:34.538Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":7.2,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00501,"percentile":0.41674,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.02199999999999997,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00479},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00501,"percentile":0.41674}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00479,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00501,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00501,"percentile":0.41674}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm","description":"The product uses a broken or risky cryptographic algorithm or protocol.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/327.html"}],"affected":[{"vendor":"auth0","product":"jsonwebtoken","name":"jsonwebtoken","label":"jsonwebtoken","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 8.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 8.5.1","eol":null,"hubHref":"/vendor/auth0/jsonwebtoken"},{"vendor":"auth0","product":"node-jsonwebtoken","name":"node-jsonwebtoken","label":"node-jsonwebtoken","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 8.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 8.5.1","eol":null,"hubHref":"/vendor/auth0/node-jsonwebtoken"},{"vendor":"Npm","product":"jsonwebtoken","name":"jsonwebtoken","label":"jsonwebtoken","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/jsonwebtoken","purlType":"npm","versions":[{"text":"< 9.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.0.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-8cf7-32gw-wr33","label":"github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-8cf7-32gw-wr33","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Third Party Advisory"]},{"url":"https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3","label":"github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0007/","label":"security.netapp.com/advisory/ntap-20240621-0007/","hostname":"security.netapp.com","tags":[]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23539","label":"nvd.nist.gov/vuln/detail/CVE-2022-23539","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/auth0/node-jsonwebtoken","label":"github.com/auth0/node-jsonwebtoken","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0007","label":"security.netapp.com/advisory/ntap-20240621-0007","hostname":"security.netapp.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-12-22T23:20:47.855Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-15T13:31:34.538Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:50:42.651Z","stale":false,"partial":false}}