SCA: security update for jsonwebtoken (GHSA-8cf7-32gw-wr33)

high Tenable Cloud Security Plugin ID 412595

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2022-23539)

See Also

https://github.com/advisories/GHSA-8cf7-32gw-wr33

Plugin Details

Severity: High

ID: 412595

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.3

Percentile: 53.04

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 8.5

Temporal Score: 6.3

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:N

CVSS Score Source: CVE-2022-23539

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.1

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 12/22/2022

Vulnerability Publication Date: 12/22/2022

Reference Information

CVE: CVE-2022-23539

cwe: CWE-327