Overview
Auth0 has released a new major version of thejsonwebtoken library to address four vulnerabilities.
We recommend you review the following security advisories and upgrade to the new major version:
- Unrestricted key type could lead to legacy keys usage: CVE-2022-23539
- Insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMAC: CVE-2022-23541
- Insecure default algorithm in .verify() could lead to signature validation bypass: CVE-2022-23540
Am I affected?
You could be affected if you are usingjsonwebtoken in any version <= 8.5.1 depending on the configuration. Please consult the individual security advisories for more details.
How to fix that?
If you are usingjsonwebtoken, upgrade to version 9.0.0 or higher. You may need some additional configuration. Please consult the individual security advisories for more details.