CVE-2022-23539
MEDIUMDescription
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.
How to fix
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
Exploit Intelligence
Low risk: more likely to be exploited than 38% of all known CVEs.
References
Related Vulnerabilities
Other CWE-327 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2015-2808 | Low | 3.7 | 74% | - | Fix |
| CVE-2023-34039 | Critical | 9.8 | 64% | - | Fix |
| CVE-2016-6602 | Critical | 9.8 | 55% | - | - |
| CVE-2014-8687 | Critical | 9.8 | 44% | - | - |
| CVE-2020-13777 | High | 7.4 | 18% | - | Fix |
| CVE-2017-17428 | Medium | 5.9 | 15% | - | - |
Embed a live status badge for CVE-2022-23539
Markdown
[](https://tridentstack.com/cve/CVE-2022-23539)HTML
<a href="https://tridentstack.com/cve/CVE-2022-23539"><img src="https://tridentstack.com/cve/badge/CVE-2022-23539.svg" alt="CVE-2022-23539"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
Start freeThis product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.