← Übersicht Nicht im beobachteten Stack

fastify vulnerable to X-Forwarded-* spoofing under trustProxy hop-count

CVE-2026-16732 · GHSA-3m5p-2c4r-xxw2

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

Veröffentlicht
18.08.2026 22:30
Zuletzt geändert
24.09.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.

fastify is a fast and low overhead web framework for Node.js. Impact: the fix for CVE-2026-3635 added a guard on the forwarded-header reads used to derive the request host, protocol, hostname, ip, and ips values, checking the connecting address. That guard closes the IP, CIDR, and custom-function forms of trustProxy correctly, because those forms compile to predicates that inspect the connecting address. The hop-count form, where trustProxy is set to a number, compiles to a predicate that structurally ignores the address, so the guard is always satisfied for any hop count of one or more. Applications configured with a numeric trustProxy value, such as trustProxy set to 1 for a single reverse proxy, remain vulnerable: an attacker who can reach the Fastify origin directly, bypassing the front-facing proxy, can spoof the forwarded request fields exactly as in the unpatched version. The impact class matches the parent CVE-2026-3635, including host injection in generated URLs, HTTPS-enforcement bypass, secure-cookie and CSRF-origin bypass, and host-based routing and cache poisoning. Affected versions are fastify from 5.8.3 up to but not including 5.12.1. Patches: patched in fastify 5.12.1, where the numeric form of trustProxy is disabled at runtime and removed from the TypeScript type union. Workarounds: migrate to an IP, CIDR, or custom-function trustProxy value that validates the connecting address, and ensure the Fastify origin is only reachable through the trusted proxy chain.

Status beim Hersteller

Red Hat stuft seine Produktlinien ein: 1 betroffen, 2 nicht betroffen.

Red Hat OpenShift Dev Spaces BetroffenFix zurückgestellt devspaces/dashboard-rhel9
Nicht betroffen (2)
Red Hat Enterprise Linux AI (RHEL AI) 3Nicht betroffenverwundbarer Code nicht enthaltenrhelai3/bootc-cuda-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/disk-image-cuda-rhel9
Red Hat OpenShift AI (RHOAI)Nicht betroffenverwundbarer Code nicht enthaltenrhoai/odh-core-bff-rhel9, rhoai/odh-dashboard-operator-rhel9, rhoai/odh-dashboard-rhel9, rhoai/odh-mod-arch-agent-ops-rhel9, rhoai/odh-mod-arch-automl-rhel9, rhoai/odh-mod-arch-autorag-rhel9, rhoai/odh-mod-arch-eval-hub-rhel9, rhoai/odh-mod-arch-gen-ai-rhel9, rhoai/odh-mod-arch-maas-rhel9, rhoai/odh-mod-arch-mlflow-rhel9, rhoai/odh-mod-arch-model-registry-rhel9
Weitere betroffene Pakete (5)
CVEfastify/fastify5.8.3 → 5.12.1CVE-2026-16732
NVDfastify:fastify5.8.3 → 5.12.1CVE-2026-16732
TuxCare:npmfastify5.11.3-tuxcare.0 → 5.11.3-tuxcare.1CLSA-2026-1788457323
TuxCare:npmfastify5.12.0-tuxcare.0 → 5.12.0-tuxcare.1CLSA-2026-1789896330
npmfastify5.8.3 → 5.12.1GHSA-3m5p-2c4r-xxw2

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.