CVE-2022-23539Auth0 Jsonwebtoken
High 8.1
Follow: this CVE · Auth0 · Auth0 Jsonwebtoken We alert you by email or Slack (account required).
- Priority
- 49
- CVSS 3.1
- 8.1
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 41
- Auth required
- Yes
- Published
- Dec 23, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-327
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
What happens
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
- Apply the vendor's security update for Jsonwebtoken.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | jsonwebtoken |
< 9.0.0 |
9.0.0 |
npm install jsonwebtoken@9.0.0 |
Per OSV / GitHub Advisories (GHSA-8cf7-32gw-wr33). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| auth0 | jsonwebtoken | ≤ 8.5.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- security.netapp.com