← Übersicht Nicht im beobachteten Stack

Fastify request.protocol and request.host spoofable via X-Forwarded-Proto/Host from untrusted connections when trustProxy uses restrictive trust function

CVE-2026-3635 · CLSA-2026-1786387037 · CLSA-2026-1794675489 · GHSA-444r-cwp2-x5xf

Mittel · CVSS 6.1 Red Hat: Moderate Nachbarnetz Kein Fix bekannt

Veröffentlicht
23.03.2026 14:53
Zuletzt geändert
14.11.2026
EPSS (30 Tage)
0.2 %
CVSS-Vektor
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Beschreibung

Originaltext der Quelle, nicht übersetzt.

Summary When trustProxy is configured with a restrictive trust function (e.g., a specific IP like trustProxy: '10.0.0.1', a subnet, a hop count, or a custom function), the request.protocol and request.host getters read X-Forwarded-Proto and X-Forwarded-Host headers from any connection — including connections from untrusted IPs. This allows an attacker connecting directly to Fastify (bypassing the proxy) to spoof both the protocol and host seen by the application. Affected Versions fastify <= 5.8.2 Impact Applications using request.protocol or request.host for security decisions (HTTPS enforcement, secure cookie flags, CSRF origin checks, URL construction, host-based routing) are affected when trustProxy is configured with a restrictive trust function. When trustProxy: true (trust everything), both host and protocol trust all forwarded headers — this is expected behavior. The vulnerability only manifests with restrictive trust configurations.

Status beim Hersteller

Red Hat stuft seine Produktlinien ein: 3 betroffen.

Red Hat Enterprise Linux AI (RHEL AI) 3 BetroffenFix zurückgestellt rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/disk-image-cuda-rhel9
Red Hat OpenShift AI (RHOAI) BetroffenFix zurückgestellt rhoai/odh-dashboard-rhel8, rhoai/odh-dashboard-rhel9, rhoai/odh-mod-arch-gen-ai-rhel9, rhoai/odh-mod-arch-maas-rhel9, rhoai/odh-mod-arch-model-registry-rhel9
Red Hat OpenShift Dev Spaces BetroffenFix zurückgestellt devspaces/dashboard-rhel9
Weitere betroffene Pakete (7)
CVEfastify/fastifykein Fix bekanntCVE-2026-3635
NVDfastify:fastify5.8.3CVE-2026-3635
TuxCare:npmfastify4.29.1-tuxcare.0 → 4.29.1-tuxcare.2CLSA-2026-1786387037
TuxCare:npmfastify5.7.4-tuxcare.0 → 5.7.4-tuxcare.1CLSA-2026-1789159896
TuxCare:npmfastify5.2.1-tuxcare.0 → 5.2.1-tuxcare.1CLSA-2026-1789906142
TuxCare:npmfastify5.8.2-tuxcare.0 → 5.8.2-tuxcare.1CLSA-2026-1794675489
npmfastify5.8.3GHSA-444r-cwp2-x5xf

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 (Nachbarnetz) 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.