CVE-2022-23539
published medium CVSS 3.1 · 5.9jsonwebtoken unrestricted key type could lead to legacy keys usage
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| auth0 | — | node-jsonwebtoken<= 8.5.1 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| auth0 | node-jsonwebtoken | <= 8.5.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-327 CWE-327: Use of a Broken or Risky Cryptographic Algorithm
References
3Provider assertions
3GitHub_M · cna
jsonwebtoken unrestricted key type could lead to legacy keys usage
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 168efd9c1207b85eb92e15ecfe7472242a62e879df67e76debd1960a71c6aec7
- Ingested
- 23 Sep 2026, 07:58:41 UTC
- Source record
- Official CVE record