CVE-2026-18206: Keycloak-services: keycloak-services: client policy source-host wildcard domain matching bypass
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.
Other sources
A flaw was found in the keycloak-services component of Keycloak, which provides identity and access management services. The issue occurs when a realm administrator uses a wildcard domain (like .example.com) to restrict which hosts can register or update clients. Due to improper validation, the system accepts any hostname that ends with the specified domain suffix, even if it is not a legitimate subdomain. An attacker who can control the reverse DNS of their connection can bypass these host-based restrictions, potentially allowing unauthorized client modifications.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-18206?
The severity of CVE-2026-18206 is classified as low with a score of 3.7.
How do I fix CVE-2026-18206?
To fix CVE-2026-18206, ensure that hostname matching logic is correctly validating wildcard domains against trusted source hosts.
What systems are affected by CVE-2026-18206?
CVE-2026-18206 affects Keycloak and specifically the keycloak-services module.
What is the nature of the vulnerability in CVE-2026-18206?
CVE-2026-18206 is a flaw in the hostname matching logic that allows wildcard domain matching bypass.
When was CVE-2026-18206 published?
CVE-2026-18206 was published on July 29, 2026.