Technical impact
A flaw in the secure-redirect-uris-enforcer client policy of Keycloak allows attackers to subvert the domain allowlist by supplying a hostname that resolves to a loopback address. The policy verifies hostnames by performing DNS resolution, so a crafted hostname can point to 127.0.0.1 or ::1 and bypass the whitelist. As a result, an attacker may register redirect URIs that redirect users to malicious sites or capture authentication tokens, compromising confidentiality and potentially allowing session hijacking.
Affected Systems
Vendors affected include Red Hat Build of Keycloak and Red Hat Single Sign‑On 7. Specific affected builds are not detailed in the advisory, so any deployment using this insecure client policy without patching could be vulnerable.
Risk and Exploitability
The CVSS score of 6.8 indicates a moderate‑to‑high severity. The vulnerability has no EPSS score listed, so the likelihood of exploitation at this time is unknown, and it is not present in CISA’s KEV catalog. Exploitation requires the attacker to create or modify a client registration containing a redirect URI with a hostname that DNS‑resolves to a loopback address; no additional system privileges are required beyond the ability to register a client. Once the redirect URI is bypassed, the attacker can redirect users to attack vectors that capture tokens or credentials.