> CVE-2022-41919 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2022-11-22 20:15
MODIFIED
2024-11-21 07:24
CVSS_SCORE V3
4.2
EPSS (Prob. Exploit)
0.41%
Top 64.6%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-17 OSV 🔗 2026-11-15

> DESCRIPTION

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

> AFFECTED_PRODUCTS

Fastify - Fastify
>= 3.0.0 < 3.29.4
Fastify - Fastify
>= 4.0.0 < 4.10.2

> CVSS V3 METRICS

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

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> GITHUB SECURITY ADVISORY

GHSA-3fjj-p79j-c9hh MODERATE

Fastify: Incorrect Content-Type parsing can lead to CSRF attack

AFFECTED PACKAGES:
NPM / fastify
>= 3.0.0, < 3.29.4
Fixed in: 3.29.4
NPM / fastify
>= 4.0.0, < 4.10.2
Fixed in: 4.10.2

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Fastify vulnerable to Cross-Site Request Forgery (CSRF) attack via incorrect content type

AFFECTED PACKAGES:
Unknown / Unknown
90 versions affected
ALIASES:
GHSA-3fjj-p79j-c9hh

> HISTORIQUE DES MODIFICATIONS

Première apparition
22/11/2022 20:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:36
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME