← Übersicht Nicht im beobachteten Stack

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

CVE-2022-41919 · GHSA-3fjj-p79j-c9hh

Hoch · CVSS 8.8 Red Hat: Moderate Netzwerk · ohne Login · Nutzerinteraktion Kein Fix bekannt

Veröffentlicht
21.11.2022
Zuletzt geändert
23.04.2025
EPSS (30 Tage)
0.5 %
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Beschreibung

Originaltext der Quelle, nicht übersetzt.

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

Status beim Hersteller

Red Hat stuft seine Produktlinien ein: 1 betroffen.

Red Hat OpenShift Dev Spaces BetroffenFix ausstehend devspaces/dashboard-rhel8
Weitere betroffene Pakete (4)
CVEfastify/fastifykein Fix bekanntCVE-2022-41919
NVDfastify:fastify3.0.0 → 3.29.4, 4.0.0 → 4.10.2CVE-2022-41919
npmfastify4.0.0 → 4.10.2GHSA-3fjj-p79j-c9hh
npmfastify3.0.0 → 3.29.4GHSA-3fjj-p79j-c9hh

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Netzwerk · ohne Login · Nutzerinteraktion) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.