Description
http4k (Maven package org.http4k:http4k-core) before 6.49.0.0, 5.42.0.0 and 4.51.0.0 uses substring (Contains) matching on the Host header by default in reverseProxy() and reverseProxyRouting() when dispatching to configured virtual hosts. If these functions are deployed as a public-facing inbound HTTP handler with two or more configured virtual hosts, a remote attacker can supply a Host header that merely contains a configured vhost name (for example Host: admin.evil.com for a vhost configured as "admin") and be routed to that vhost, bypassing routing-based authorization. The intended outbound-dispatch and test-time uses, where the Host value is set by the calling application, are not affected.
Published: 2026-09-27
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: Access Control Bypass via Host Header Matching
Action: Patch Upgrade
AI Analysis

Impact

The vulnerability in http4k occurs when the reverseProxy() and reverseProxyRouting() functions perform substring matching on the Host header. An attacker sending a Host header that only contains a configured virtual host name can be routed to that host, bypassing any routing‑based authorization. This allows the attacker to gain unintended access to protected application paths that are meant to be restricted to specific virtual hosts.

Affected Systems

The issue affects the http4k library (org.http4k:http4k-core) in versions prior to 6.49.0.0, 5.42.0.0, and 4.51.0.0. These versions are commonly used in server‑side applications that expose reverseProxy handlers to the internet.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. EPSS information is unavailable, and the vulnerability is not listed in CISA KEV. The likely attack vector is remote HTTP requests; any inbound request that reaches a reverseProxy handler configured with multiple virtual hosts is potentially exploitable. While no public exploits are reported, the impact—bypassing routing‑based access control—is significant enough to warrant prompt action.

Generated by OpenCVE AI on September 27, 2026 at 03:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade http4k to version 6.49.0.0 or newer (or 5.42.0.0/4.51.0.0 for those specific releases) to remove the substring matching flaw.
  • Reconfigure reverseProxy or reverseProxyRouting to use exact Host header matching, or disable multiple virtual hosts on the same public‑facing inbound handler if such configuration is required.
  • Restrict inbound traffic to the reverseProxy endpoint using network‑level controls (firewalls, VPNs, or ACLs) so that only trusted IPs can reach the vulnerable functionality.

Generated by OpenCVE AI on September 27, 2026 at 03:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 27 Sep 2026 03:30:00 +0000

Type Values Removed Values Added
First Time appeared Http4k
Http4k http4k
Vendors & Products Http4k
Http4k http4k

Sun, 27 Sep 2026 02:00:00 +0000

Type Values Removed Values Added
Description http4k (Maven package org.http4k:http4k-core) before 6.49.0.0, 5.42.0.0 and 4.51.0.0 uses substring (Contains) matching on the Host header by default in reverseProxy() and reverseProxyRouting() when dispatching to configured virtual hosts. If these functions are deployed as a public-facing inbound HTTP handler with two or more configured virtual hosts, a remote attacker can supply a Host header that merely contains a configured vhost name (for example Host: admin.evil.com for a vhost configured as "admin") and be routed to that vhost, bypassing routing-based authorization. The intended outbound-dispatch and test-time uses, where the Host value is set by the calling application, are not affected.
Title http4k before 6.49.0.0 Host Header Routing Bypass via reverseProxy
Weaknesses CWE-444
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-27T01:28:30.710Z

Reserved: 2026-09-26T02:40:56.226Z

Link: CVE-2026-100724

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-27T02:17:20.603

Modified: 2026-09-27T02:17:20.603

Link: CVE-2026-100724

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-27T03:30:20Z

Weaknesses
  • CWE-444

    Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')