CVE-2022-23539

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2022-23539
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23539.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-23539
Aliases
Published
2022-12-23T00:15:12Z
Modified
2024-06-21T22:40:13.930119Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/auth0/node-jsonwebtoken

Affected ranges

Type
GIT
Repo
https://github.com/auth0/node-jsonwebtoken
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.2.0

v1.*

v1.1.1
v1.1.2

v2.*

v2.0.0

v3.*

v3.0.0
v3.1.0
v3.1.1
v3.2.0
v3.2.1
v3.2.2

v4.*

v4.0.0
v4.1.0
v4.2.0
v4.2.1
v4.2.2

v5.*

v5.0.0
v5.0.1
v5.0.2
v5.0.3
v5.0.4
v5.0.5
v5.1.0
v5.3.0
v5.3.1
v5.4.0
v5.5.0
v5.5.1
v5.5.2
v5.5.3
v5.5.4
v5.6.0
v5.6.1
v5.6.2
v5.7.0

v6.*

v6.0.0
v6.0.1
v6.1.0
v6.1.1
v6.1.2
v6.2.0

v7.*

v7.0.0
v7.0.1
v7.1.0
v7.1.1
v7.1.10
v7.1.2
v7.1.3
v7.1.4
v7.1.5
v7.1.6
v7.1.7
v7.1.8
v7.1.9
v7.2.0
v7.2.1
v7.3.0
v7.4.0
v7.4.1
v7.4.2
v7.4.3

v8.*

v8.0.0
v8.0.1
v8.1.0
v8.1.1
v8.2.0
v8.2.1
v8.2.2
v8.3.0
v8.5.0
v8.5.1