Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-27959

published high CVSS 3.1 · 7.5

Koa has Host Header Injection via `ctx.hostname`

Published
26 Feb 2026, 01:45:45 UTC
Updated
15 Jul 2026, 01:12:18 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
koajs — koa>= 3.0.0, < 3.1.2 · < 2.16.4 Affected Not stated GitHub_M
Red Hat — rhoai/odh-dashboard-rhel9Red Hat OpenShift AI 2.25 · 1776742021 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — rhoai/odh-mod-arch-model-registry-rhel9Red Hat OpenShift AI 2.25 · 1776742141 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — openshift4/ose-monitoring-plugin-rhel9Red Hat OpenShift Container Platform 4.19 · 1775577192 and later · Other versions: affected Unaffected Not stated redhat-SADP
Red Hat — rhdh/rhdh-hub-rhel9Red Hat Developer Hub Affected Not stated redhat-SADP
Red Hat — rhoai/odh-mod-arch-gen-ai-rhel9Red Hat OpenShift AI (RHOAI) Unknown Not stated redhat-SADP
Red Hat — devspaces/code-rhel9Red Hat OpenShift Dev Spaces Unaffected Not required redhat-SADP
Red Hat — ansible-automation-platform/automation-portalSelf-service automation portal 2 Affected Not stated redhat-SADP

Description

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.

en · GitHub_M · cna

en · redhat-SADP · adp

A flaw was found in Koa’s ctx.hostname API used in Node.js applications. The function incorrectly parses specially crafted HTTP Host headers containing an @ character, which can cause the extracted hostname value to differ from the intended origin. An attacker can exploit this behavior by sending a malicious Host header to influence the hostname value returned by ctx.hostname. Applications that rely on this value for generating absolute URLs, password reset links, or email verification links without additional validation may be susceptible to Host header injection attacks.

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 8.2 high redhat-SADP · adp CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
koajs koa >= 3.0.0, < 3.1.2 (affected)< 2.16.4 (affected) GitHub_M · cna
Red Hat Red Hat OpenShift AI 2.25 1776742021 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat OpenShift AI 2.25 1776742141 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat OpenShift Container Platform 4.19 1775577192 and later (unaffected · rpm)Default: affected redhat-SADP · adp
Red Hat Red Hat Developer Hub Default: affected redhat-SADP · adp
Red Hat Red Hat OpenShift AI (RHOAI) Default: unknown redhat-SADP · adp
Red Hat Red Hat OpenShift Dev Spaces Default: unaffected redhat-SADP · adp
Red Hat Self-service automation portal 2 Default: affected redhat-SADP · adp

Weaknesses

2
  • CWE-20 CWE-20: Improper Input Validation (GitHub_M · cna)
  • CWE-20 Improper Input Validation (redhat-SADP · adp)

References

8

Provider assertions

3

GitHub_M · cna

Koa has Host Header Injection via `ctx.hostname`

redhat-SADP · adp

koa: Koa: Host header injection vulnerability due to malformed HTTP Host header parsing

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
17c9406a0e8736364af0302c72f16b4e6e5c4e0c332525528d6f9be915e72e71
Ingested
23 Sep 2026, 09:07:57 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected