{"schemaVersion":3,"id":"CVE-2022-23540","aliases":["GHSA-qwph-4952-7xr6"],"status":"published","duplicateOf":null,"title":null,"description":"In versions `<=8.5.1` of `jsonwebtoken` library, lack of algorithm definition in the `jwt.verify()` function can lead to signature validation bypass due to defaulting to the `none` algorithm for signature verification. Users are affected if you do not specify algorithms in the `jwt.verify()` function. This issue has been fixed, please update to version 9.0.0 which removes the default support for the none algorithm in the `jwt.verify()` method. There will be no impact, if you update to version 9.0.0 and you don’t need to allow for the `none` algorithm. If you need 'none' algorithm, you have to explicitly specify that in `jwt.verify()` options.","dates":{"published":"2022-12-22T18:02:24.770Z","modified":"2025-02-13T16:32:21.578Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.6,"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:L/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","exploitability":4.1,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00551,"percentile":0.44953,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.019000000000000006,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00532},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00551,"percentile":0.44953}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00532,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00546,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00551,"percentile":0.44953}]},"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-287","name":"Improper Authentication","description":"When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/287.html"},{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature","description":"The product does not verify, or incorrectly verifies, the cryptographic signature for data.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/347.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-qwph-4952-7xr6","label":"github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-qwph-4952-7xr6","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"]},{"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-23540","label":"nvd.nist.gov/vuln/detail/CVE-2022-23540","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-22T18:02:24.770Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-13T16:32:21.578Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:18:14.575Z","stale":false,"partial":false}}