patchminder
No public exploit found CVE-2022-23539

Weak cryptographyin Auth0 node-jsonwebtoken.

Published 22 Dec 2022 · Updated 15 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Medium 5.9
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 9.0.0 or later
In plain words

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.

What to do now
  • Upgrade jsonwebtoken (npm) to 9.0.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
node-jsonwebtoken
8.5.1 and earlier
Not confirmed
CVE record
jsonwebtoken (npm)
before 9.0.0
9.0.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 19 Jan 2022
    CVE ID reserved by GitHub_M.
  2. 22 Dec 2022
    Published in the CVE List.
  3. 15 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other node-jsonwebtoken vulnerabilities

Same weakness: Broken or risky cryptographic algorithm

All CWE-327 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-23539: Weak cryptography in Auth0 node-jsonwebtoken. https://patchminder.com/cve/cve-2022-23539/ (accessed 5 December 2026).