CVE-2026-118425

Keycloak-services: keycloak-services: redirect uri domain allowlist bypass via dns resolution to loopback

Published Oct 29, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
A flaw was found in the secure-redirect-uris-enforcer client policy of Keycloak, an identity and access management solution. The issue occurs when the policy is configured to allow loopback addresses, as Keycloak resolves hostnames via DNS during validation. An attacker can bypass domain allowlist restrictions by using a hostname that resolves to a loopback address, potentially allowing the registration of unauthorized redirect URIs.

Analysis

AI-generated

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.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.


OpenCVE Recommended Actions

  • Disable or tightly restrict the loopback allowlist in the redirect URI policy and ensure only fully qualified, externally reachable domains are permitted.
  • Apply the vendor‑issued patch for this flaw as soon as it becomes available. If no patch exists, restrict client registration permissions to trusted administrators and review redirect URIs regularly.
  • Monitor authentication and client‑registration logs for suspicious redirect URI entries and enforce alerting for any that use hostnames resolving to loopback addresses.

Generated by OpenCVE AI on October 29, 2026 at 16:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Red Hat
Red Hat red Hat Build Of Keycloak 26.4
Redhat build Of Keycloak
Redhat single Sign-on
Vendors & Products Red Hat
Red Hat red Hat Build Of Keycloak 26.4
Redhat build Of Keycloak
Redhat single Sign-on
Type Values Removed Values Added
Description A flaw was found in the secure-redirect-uris-enforcer client policy of Keycloak, an identity and access management solution. The issue occurs when the policy is configured to allow loopback addresses, as Keycloak resolves hostnames via DNS during validation. An attacker can bypass domain allowlist restrictions by using a hostname that resolves to a loopback address, potentially allowing the registration of unauthorized redirect URIs.
Title Keycloak-services: keycloak-services: redirect uri domain allowlist bypass via dns resolution to loopback
First Time appeared Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
Weaknesses CWE-601
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 2, 2026, 8:53 PM
Reserved
Oct 28, 2026, 5:35 AM
Status
Awaiting Analysis
Published
Oct 29, 2026, 2:17 PM
Modified
Nov 2, 2026, 9:17 PM
Severity
Moderate
Public date
Oct 27, 2026, 10:34 PM