SCA: security update for fastify (GHSA-3fjj-p79j-c9hh)

high Tenable Self-Hosted Container Security Plugin ID 409489

Description

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

- Fastify is a web framework with minimal overhead and plugin architecture. The attacker can use the
incorrect `Content-Type` to bypass the `Pre-Flight` checking of `fetch`. `fetch()` requests with Content-
Type’s essence as "application/x-www-form-urlencoded", "multipart/form-data", or "text/plain", could
potentially be used to invoke routes that only accepts `application/json` content type, thus bypassing any
CORS protection, and therefore they could lead to a Cross-Site Request Forgery attack. This issue has been
patched in version 4.10.2 and 3.29.4. As a workaround, implement Cross-Site Request Forgery protection
using `@fastify/csrf'. (CVE-2022-41919)

See Also

https://github.com/advisories/GHSA-3fjj-p79j-c9hh

Plugin Details

Severity: High

ID: 409489

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

Score: 4.9

Percentile: 57.12

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

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

CVSS Score Source: CVE-2022-41919

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

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:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 11/21/2022

Vulnerability Publication Date: 11/21/2022

Reference Information

CVE: CVE-2022-41919

cwe: CWE-352