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.
Published: 2026-07-31
Score: 4.2 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

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 yet.

History

Sun, 02 Aug 2026 19:45:00 +0000

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

Sat, 01 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 31 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 31 Jul 2026 07:30:00 +0000

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'}


Subscriptions

Redhat Build Keycloak Build Of Keycloak Data Grid Jboss Data Grid Jboss Enterprise Application Platform Expansion Pack Jbosseapxp Red Hat Single Sign On Single Sign-on
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-31T14:56:13.354Z

Reserved: 2026-07-29T08:24:18.687Z

Link: CVE-2026-18211

cve-icon Vulnrichment

Updated: 2026-07-31T14:56:09.086Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-31T08:16:27.610

Modified: 2026-08-07T14:30:12.280

Link: CVE-2026-18211

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-28T12:55:48Z

Links: CVE-2026-18211 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T10:00:12Z

Weaknesses
  • CWE-20

    Improper Input Validation