SCA: security update for lcobucci/jwt (GHSA-7322-jrq4-x5hf)

low Tenable Cloud Security Plugin ID 411761

Description

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

- JWT is a library to work with JSON Web Token and JSON Web Signature. Prior to versions 3.4.6, 4.0.4, and
4.1.5, users of HMAC-based algorithms (HS256, HS384, and HS512) combined with
`Lcobucci\JWT\Signer\Key\LocalFileReference` as key are having their tokens issued/validated using the
file path as hashing key - instead of the contents. The HMAC hashing functions take any string as input
and, since users can issue and validate tokens, users are lead to believe that everything works properly.
Versions 3.4.6, 4.0.4, and 4.1.5 have been patched to always load the file contents, deprecated the
`Lcobucci\JWT\Signer\Key\LocalFileReference`, and suggest `Lcobucci\JWT\Signer\Key\InMemory` as the
alternative. As a workaround, use `Lcobucci\JWT\Signer\Key\InMemory` instead of
`Lcobucci\JWT\Signer\Key\LocalFileReference` to create the instances of one's keys. (CVE-2021-41106)

See Also

https://github.com/advisories/GHSA-7322-jrq4-x5hf

Plugin Details

Severity: Low

ID: 411761

Version: Revision 1.6

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: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Low

Base Score: 2.1

Temporal Score: 1.6

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

CVSS Score Source: CVE-2021-41106

CVSS v3

Risk Factor: Low

Base Score: 3.3

Temporal Score: 2.9

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/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: 9/29/2021

Vulnerability Publication Date: 9/28/2021

Reference Information

CVE: CVE-2021-41106

cwe: CWE-345