CVE-2022-23539
JavaScript vulnerability analysis and mitigation

Overview

The CVE-2022-23539 affects versions <=8.5.1 of the jsonwebtoken library, where it could be misconfigured to use legacy, insecure key types for signature verification. For example, DSA keys could be used with the RS256 algorithm, creating potential security risks. The vulnerability was disclosed in December 2022 and has been fixed in version 9.0.0 (GitHub Advisory).

Technical details

The vulnerability stems from the library's lack of validation for asymmetric key type and algorithm combinations. The issue allows the use of incompatible key types with specific algorithms, potentially compromising the security of the signature verification process. The vulnerability has received a CVSS v3.1 base score of 8.1 HIGH (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N) according to the NVD assessment, while GitHub rates it as MEDIUM with a score of 5.9 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N) (NVD).

Impact

When exploited, this vulnerability could lead to signature validation bypass if incorrect key type and algorithm combinations are used. This could potentially allow attackers to forge tokens or bypass security measures intended to protect the application's authentication and authorization mechanisms (GitHub Advisory).

Mitigation and workarounds

The recommended mitigation is to update to version 9.0.0, which implements validation for asymmetric key type and algorithm combinations. If legacy compatibility is required, users can set the 'allowInvalidAsymmetricKeyTypes' option to true in the sign() and/or verify() functions after updating. However, this should be avoided unless absolutely necessary for backward compatibility (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-8083HIGH8.6
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025
CVE-2025-67750HIGH8.4
  • JavaScriptJavaScript
  • lightning-flow-scanner
NoYesDec 12, 2025
CVE-2025-8082MEDIUM6.3
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management