#51278·keycloak

[CVE-2026-18206] Client policy source-host wildcard domains match non-subdomain suffixes

Author: ahus1Created Jul 29, 2026Updated Sep 17, 2026
Labelsarea/oidcpriority/importantkind/cvebackport/26.6team/core-protocolsbackport/26.7

CVE-2026-18206: A flaw was found in the hostname matching logic within the ClientUpdaterSourceHostsCondition of Keycloak. When a wildcard domain (e.g., *.example.com) is configured as a trusted source host in a client policy, the matching mechanism performs a simple suffix check without ensuring a proper subdomain boundary (a preceding dot). An unauthenticated attacker whose connecting IP address reverse-resolves to a crafted hostname ending in the trusted suffix (e.g., attackerexample.com) can satisfy the condition. This allows the attacker to bypass source-host restrictions intended to limit client registration or update operations to trusted domains. Successful exploitation causes policy executors to run as if the request originated from a legitimate trusted source, which can weaken or bypass security constraints applied to client management.


This issue was originally tracked in the private repository. Migrated by @ahus1.