SCA: security update for @fastify/oauth2 (GHSA-g8x5-p9qc-cf95)

high Tenable Self-Hosted Container Security Plugin ID 415008

Description

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

- All versions of @fastify/oauth2 used a statically generated state parameter at startup time and were used
across all requests for all users. The purpose of the Oauth2 state parameter is to prevent Cross-Site-
Request-Forgery attacks. As such, it should be unique per user and should be connected to the user's
session in some way that will allow the server to validate it. v7.2.0 changes the default behavior to
store the state in a cookie with the http-only and same-site=lax attributes set. The state is now by
default generated for every user. Note that this contains a breaking change in the checkStateFunction
function, which now accepts the full Request object. (CVE-2023-31999)

See Also

https://github.com/advisories/GHSA-g8x5-p9qc-cf95

Plugin Details

Severity: High

ID: 415008

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.9

Percentile: 57.58

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

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

CVSS Score Source: CVE-2023-31999

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

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

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 7/5/2023

Vulnerability Publication Date: 7/4/2023

Reference Information

CVE: CVE-2023-31999

cwe: CWE-352