CVE-2026-18211

Keycloak-services: keycloak-services: secure-client-uris policy bypass via localhost-prefixed domains

Published Jul 31, 2026 CVSS 3.1 · 4.2 Medium EPSS < 1% KEV · Not listed
Description
A flaw was found in the secure-client-uris client policy executor within Keycloak core services. This component is responsible for enforcing security requirements on client configurations, such as requiring encrypted connections for redirect URIs. Due to an improper check that only looks at the start of a web address rather than properly verifying the host, an attacker can bypass these security restrictions by using a specially crafted domain name. This could allow an attacker to intercept sensitive authentication codes over unencrypted connections.

Analysis

AI-generated

Technical impact

A flaw in the secure-client-uris client policy executor in Keycloak core services allows an attacker to bypass security requirements on client configurations by using a specially crafted domain that begins with a localhost prefix. The bypass permits the use of unencrypted connections for redirect URIs, enabling interception of sensitive authentication codes. The weakness is an instance of improper input validation (CWE-20).

Affected Systems

Affected vendors include Red Hat Build of Keycloak, Red Hat Data Grid 8, Red Hat JBoss Enterprise Application Platform Expansion Pack, and Red Hat Single Sign‑On 7. The flaw impacts any deployed instance of these Red Hat products that relies on Keycloak’s secure-client-uris policy to enforce HTTPS for redirect URIs, but only if the policy check incorrectly accepts localhost-prefixed domains. Version details are not specified in the CNA data.

Risk and Exploitability

The CVSS score of 4.2 indicates a moderate risk; the EPSS score of 0.0019 (<1%) suggests a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Nevertheless, the potential impact—interception of OAuth codes—can compromise authentication flows. Attackers would need to supply a malicious redirect URI that begins with a localhost prefix, so the exploit requires that the victim’s browser or application accepts such URIs. Because the flaw stems from a host validation loophole, the attack vector is likely through crafted client configuration or user interaction when a user authorizes the compromised client.

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

  • Check the Red Hat Customer Portal for any patch or update that addresses CVE‑2026‑18211 and apply it immediately if available.
  • Review and tighten the secure-client-uris policy in Keycloak: enforce HTTPS for all redirect URIs and disallow any redirect that starts with a ‘localhost’ prefix or similar localhost‑prefixed pattern.
  • Monitor authentication traffic for unexpected redirect patterns and consider isolating Keycloak services from untrusted networks as an interim measure until a formal patch is released.

Generated by OpenCVE AI on August 3, 2026 at 10:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat build Of Keycloak
Redhat data Grid
Redhat jboss Enterprise Application Platform Expansion Pack
Redhat single Sign-on
Vendors & Products Redhat build Of Keycloak
Redhat data Grid
Redhat jboss Enterprise Application Platform Expansion Pack
Redhat single Sign-on
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description A flaw was found in the secure-client-uris client policy executor within Keycloak core services. This component is responsible for enforcing security requirements on client configurations, such as requiring encrypted connections for redirect URIs. Due to an improper check that only looks at the start of a web address rather than properly verifying the host, an attacker can bypass these security restrictions by using a specially crafted domain name. This could allow an attacker to intercept sensitive authentication codes over unencrypted connections.
Title Keycloak-services: keycloak-services: secure-client-uris policy bypass via localhost-prefixed domains
First Time appeared Redhat
Redhat build Keycloak
Redhat jboss Data Grid
Redhat jbosseapxp
Redhat red Hat Single Sign On
Weaknesses CWE-20
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:jboss_data_grid:8
cpe:/a:redhat:jbosseapxp
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat jboss Data Grid
Redhat jbosseapxp
Redhat red Hat Single Sign On
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 31, 2026, 3:22 PM
Reserved
Jul 29, 2026, 8:24 AM
Status
Analyzed
Published
Jul 31, 2026, 8:16 AM
Modified
Aug 7, 2026, 2:30 PM
Severity
Moderate
Public date
Jul 28, 2026, 12:55 PM