{"id":"CVE-2022-23539","published":"2022-12-22T23:20:47Z","modified":"2025-04-15T13:31:34Z","title":"jsonwebtoken unrestricted key type could lead to legacy keys usage","vendor":"auth0","product":"node-jsonwebtoken","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00524,"percentile":0.45356,"provenance":"source"},"cwes":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"}],"references":[{"url":"https://github.com/auth0/node-jsonwebtoken/security/advisories/GHSA-8cf7-32gw-wr33","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0007/","tags":[]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":9.07},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"auth0","affectedVersions":[{"vendor":"auth0","product":"node-jsonwebtoken","versions":["<= 8.5.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-15T13:31:06.210734Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"jsonwebtoken","vulnerableRanges":["<9.0.0"],"patched":["9.0.0"],"from":["GHSA-8cf7-32gw-wr33"],"provenance":"source"}],"summary":{"text":"The jsonwebtoken library for Node.js (product node-jsonwebtoken, from Auth0) contains a flaw in which versions up to 8.5.1 can be misconfigured so that legacy, insecure key types, such as DSA keys with the RS256 algorithm, are used for signature verification. An attacker can exploit this over the network when the application is configured with an algorithm and key type combination outside the secure set, with low privileges required and no user interaction; the issue is fixed in version 9.0.0, which validates asymmetric key type and algorithm combinations.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:07Z"},"euvd":{"id":"EUVD-2022-7563","exploited":false,"provenance":"source"}}