CVE-2022-23541
MEDIUMDescription
jsonwebtoken is an implementation of JSON Web Tokens. Versions `<= 8.5.1` of `jsonwebtoken` library can be misconfigured so that passing a poorly implemented key retrieval function referring to the `secretOrPublicKey` argument from the readme link will result in incorrect verification of tokens. There is a possibility of using a different algorithm and key combination in verification, other than the one that was used to sign the tokens. Specifically, tokens signed with an asymmetric public key could be verified with a symmetric HS256 algorithm. This can lead to successful validation of forged tokens. If your application is supporting usage of both symmetric key and asymmetric key in jwt.verify() implementation with the same key retrieval function. This issue has been patched, please update to version 9.0.0.
How to fix
No published remediation has been found for this vulnerability's affected products yet.
Mitigation guidance may be in the linked vendor advisories in the References section below.
TridentStack Control tracks known vulnerabilities across your Windows, macOS, and Linux fleet and shows the fix as soon as one is published. See how it works
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Exploit Intelligence
Moderate risk: more likely to be exploited than 54% of all known CVEs.
References
Related Vulnerabilities
Other CWE-287 (Improper Authentication) vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2024-7593 | Critical | 9.8 | 100% | KEV | - |
| CVE-2023-35082 | Critical | 9.8 | 100% | KEV + Ransom | Fix |
| CVE-2023-35078 | Critical | 9.8 | 100% | KEV + Ransom | Fix |
| CVE-2017-7921 | Critical | 9.8 | 100% | KEV | - |
| CVE-2021-33044 | Critical | 9.8 | 100% | KEV | Fix |
| CVE-2023-46805 | High | 8.2 | 100% | KEV + Ransom | - |
Common questions
How do I fix CVE-2022-23541?
No published fix for CVE-2022-23541 has been found yet. Check the linked vendor advisories for guidance as it becomes available.
Is CVE-2022-23541 being actively exploited?
Not that we know of. CVE-2022-23541 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.77% is the estimated probability that it will be exploited in the next 30 days. That is higher than 54% of all scored CVEs.
How severe is CVE-2022-23541?
CVE-2022-23541 has a CVSS v3 base score of 5.0, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
Embed a live status badge for CVE-2022-23541
Markdown
[](https://tridentstack.com/cve/CVE-2022-23541)HTML
<a href="https://tridentstack.com/cve/CVE-2022-23541"><img src="https://tridentstack.com/cve/badge/CVE-2022-23541.svg" alt="CVE-2022-23541"></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.
This 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.