Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.http4k/http4k-core
  4. ›
  5. GHSA-jrpc-7vxp-69p6

GHSA-jrpc-7vxp-69p6: http4k: `reverseProxy()` defaulted to substring (`Contains`) matching on `Host`; tightened to `Exact`

June 19, 2026

reverseProxy() and reverseProxyRouting() matched configured vhosts by substring on the Host header (Contains matcher) by default. The intended use of these functions in http4k is outbound dispatch (e.g. matching AWS service subdomains, per the Contains docstring) and test-time composition of fake backend networks. In either of those contexts the matched Host is set by the calling application, not by an external attacker, so the loose match has no exploit surface.

If, however, reverseProxy() was deployed as a public-facing inbound HTTP handler — which the function technically supports but is not the documented intent — an external attacker could send Host: admin.evil.com and reach a vhost configured as admin, bypassing routing-based authorization.

The Contains matcher’s docstring explicitly documented this loose behaviour, but because Contains was the default, callers who never read the matcher docs would still get the loose behaviour.

Who is affected: only deployments using reverseProxy() / reverseProxyRouting() as a public-facing inbound HTTP handler with two or more configured virtual hosts. The intended outbound / test-time usage is unaffected. If you did deploy reverseProxy() inbound and rely on multi-vhost routing for authorization, treat upgrade as urgent.

References

  • github.com/advisories/GHSA-jrpc-7vxp-69p6
  • github.com/http4k/http4k/commit/0121b05537
  • github.com/http4k/http4k/commit/54c6385615
  • github.com/http4k/http4k/releases/tag/6.49.0.0
  • github.com/http4k/http4k/security/advisories/GHSA-jrpc-7vxp-69p6

Code Behaviors & Features

Detect and mitigate GHSA-jrpc-7vxp-69p6 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.51.0, all versions starting from 5.0.0 before 5.42.0, all versions starting from 6.0.0 before 6.49.0

Fixed versions

  • 4.51.0
  • 5.42.0
  • 6.49.0

Solution

Upgrade to versions 4.51.0, 5.42.0, 6.49.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Source file

maven/org.http4k/http4k-core/GHSA-jrpc-7vxp-69p6.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:59 +0000.