Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-100724 EUVD-2026-87855GHSA-9hc9-gcfq-xg98GHSA-jrpc-7vxp-69p6

http4k before 6.49.0.0 Host Header Routing Bypass via reverseProxy

Published Sep 27, 2026 · Updated Oct 29, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
http4k http4k 6.0.0.0 – < 6.49.0.0, 5.0.0.0 – < 5.42.0.0, < 4.51.0.0 6.49.0.0

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.http4k:http4k-core >= 6.0.0.0, < 6.49.0.0 6.49.0.0 GHSA-jrpc-7vxp-69p6
Maven org.http4k:http4k-core >= 5.0.0.0, < 5.42.0.0 5.42.0.0 GHSA-jrpc-7vxp-69p6
Maven org.http4k:http4k-core < 4.51.0.0 4.51.0.0 GHSA-jrpc-7vxp-69p6

References