← Übersicht Nicht im beobachteten Stack

Koa has Host Header Injection via `ctx.hostname`

CVE-2026-27959 · CLSA-2026-1788264598 · GHSA-7gcc-r8m5-44qm

Hoch · CVSS 8.2 Red Hat: Important Netzwerk · ohne Login Kein Fix bekannt

Veröffentlicht
26.02.2026 02:45
Zuletzt geändert
15.10.2026
EPSS (30 Tage)
0.4 %
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N

Beschreibung

Originaltext der Quelle, nicht übersetzt.

Koa is middleware for Node.js using ES2017 async functions. Prior to versions 3.1.2 and 2.16.4, Koa's `ctx.hostname` API performs naive parsing of the HTTP Host header, extracting everything before the first colon without validating the input conforms to RFC 3986 hostname syntax. When a malformed Host header containing a `@` symbol is received, `ctx.hostname` returns `evil[.]com` - an attacker-controlled value. Applications using `ctx.hostname` for URL generation, password reset links, email verification URLs, or routing decisions are vulnerable to Host header injection attacks. Versions 3.1.2 and 2.16.4 fix the issue.

Status beim Hersteller

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

Red Hat Developer Hub 1 Betroffenwird nicht behoben rhdh/rhdh-hub-rhel9
Red Hat OpenShift AI (RHOAI) Betroffenaußerhalb des Supports rhoai/odh-mod-arch-gen-ai-rhel9
Self-service automation portal 2 BetroffenFix ausstehend ansible-automation-platform/automation-portal
Red Hat OpenShift AI 2.25 Behoben rhoai RHSA-2026:10184
Red Hat OpenShift Container Platform 4.19 Behoben openshift4 RHSA-2026:7249
Nicht betroffen (3)
Red Hat OpenShift AI 2.25Nicht betroffenverwundbarer Code nicht enthaltenrhoai
Red Hat OpenShift Container Platform 4.19Nicht betroffenverwundbarer Code nicht enthaltenopenshift4
Red Hat OpenShift Dev SpacesNicht betroffenKomponente nicht enthaltendevspaces/code-rhel9
Weitere betroffene Pakete (7)
CVEkoajs/koakein Fix bekanntCVE-2026-27959
NVDkoajs:koa2.16.4, 3.0.0 → 3.1.2CVE-2026-27959
TuxCare:npmkoa2.15.3-tuxcare.0 → 2.15.3-tuxcare.1CLSA-2026-1787657292
TuxCare:npmkoa1.7.1-tuxcare.0 → 1.7.1-tuxcare.3CLSA-2026-1788264598
TuxCare:npmkoa2.15.4-tuxcare.0 → 2.15.4-tuxcare.1CLSA-2026-1792779347
npmkoa2.16.4GHSA-7gcc-r8m5-44qm
npmkoa3.0.0 → 3.1.2GHSA-7gcc-r8m5-44qm

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