SCA: security update for @fastify/bearer-auth (GHSA-376v-xgjx-7mfr)

high Tenable Self-Hosted Container Security Plugin ID 409365

Description

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

- @fastify/bearer-auth is a Fastify plugin to require bearer Authorization headers. @fastify/bearer-auth
prior to versions 7.0.2 and 8.0.1 does not securely use crypto.timingSafeEqual. A malicious attacker could
estimate the length of one valid bearer token. According to the corresponding RFC 6750, the bearer token
has only base64 valid characters, reducing the range of characters for a brute force attack. Version 7.0.2
and 8.0.1 of @fastify/bearer-auth contain a patch. There are currently no known workarounds. The package
fastify-bearer-auth, which covers versions 6.0.3 and prior, is also vulnerable starting at version 5.0.1.
Users of fastify-bearer-auth should upgrade to a patched version of @fastify/bearer-auth. (CVE-2022-31142)

See Also

https://github.com/advisories/GHSA-376v-xgjx-7mfr

Plugin Details

Severity: High

ID: 409365

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

Percentile: 23.18

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

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

CVSS Score Source: CVE-2022-31142

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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: 7/15/2022

Vulnerability Publication Date: 7/14/2022

Reference Information

CVE: CVE-2022-31142