Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister crafted bypass domain name
-
DeliveryConfigure malicious HTTP redirect URI on Keycloak client
-
ExploitVictim initiates OAuth authorization flow
-
ExecutionKeycloak prefix check bypassed, code redirected to HTTP URI
-
ImpactIntercept authorization code over unencrypted channel
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | The secure-client-uris client policy executor must be enabled and enforced within the target Keycloak realm - this is a configurable policy, not universally active in all deployments. An attacker must control or be able to register a domain name crafted so that the resulting redirect URI string passes the prefix-based check while the actual HTTP destination is attacker-controlled. User interaction is explicitly required: a victim must initiate an OAuth authorization code flow, and the attacker must be positioned to receive and act on the intercepted code before the legitimate client does. The attack is limited to confidentiality and integrity impacts on the authorization code itself; Keycloak server integrity and availability are not affected. Exploitation is constrained by AC:H - the crafted domain precondition is non-trivial - and is further limited to deployments where the secure-client-uris policy is actively configured. |
| Impact | The CVSS 3.1 base score of 4.2 (AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N) positions this as a medium-severity issue with realistic but constrained exploitability. The High Attack Complexity metric reflects that a specially crafted domain name must be registered and used to bypass the prefix check - this is not a trivially automated attack. User interaction is required, meaning a victim must initiate an OAuth authorization flow. The confidentiality and integrity impacts are limited to Low: an attacker can intercept an authorization code but must also be in a position to act on it (e.g., exchange it before the legitimate client does). No EPSS data was provided, no CISA KEV listing exists, and no public proof-of-concept has been identified, all of which reduce real-world urgency. SSVC inference: exploitation is not currently automated or confirmed; technical impact is partial; this is a lower-priority remediation for most organizations unless Keycloak is internet-facing with the secure-client-uris policy actively enforced. The primary concern is targeted abuse in environments where OAuth code interception could lead to account compromise. |
| Exploit ScenarioDerived | An attacker registers a domain name crafted to begin with a string that satisfies Keycloak's prefix-only HTTPS check - for example, a hostname structured so the URI string appears to start with a trusted HTTPS prefix - and registers an OAuth client (or manipulates an existing one) with this URI as the redirect destination. When a legitimate user initiates an OAuth authorization flow, Keycloak's policy executor accepts the crafted redirect URI, and the authorization code is transmitted over an unencrypted HTTP connection to the attacker's infrastructure. No public proof-of-concept code has been identified, but the technique mirrors well-understood OAuth redirect URI bypass patterns. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Redirect URI policy bypass in Keycloak's secure-client-uris executor enables interception of OAuth authorization codes over unencrypted HTTP connections. The flaw exists because the executor performs only a prefix-string comparison on the redirect URI rather than properly parsing and validating the host component, allowing a specially crafted domain name to satisfy the HTTPS enforcement check while pointing to an attacker-controlled HTTP endpoint. Affected deployments include Red Hat Build of Keycloak, Red Hat Single Sign-On 7, and related Red Hat middleware products. No public exploit code or CISA KEV listing has been identified at time of analysis.
RemediationAI
Consult the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-18211 for the patched build of Keycloak and Red Hat Single Sign-On 7; no exact fixed version number is confirmed in the available data - do not infer a version. As a compensating control prior to patching, administrators can manually audit all client redirect URI configurations in affected realms and enforce that all registered redirect URIs use the https:// scheme with fully qualified, organization-controlled hostnames - rejecting any URI that passes policy but resolves to an external or attacker-registerable domain. Disabling the secure-client-uris policy while unpatched is not recommended as it removes the enforcement layer entirely. Restricting Keycloak admin console access to trusted internal networks reduces the attack surface for clients with misconfigured redirect URIs.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Keycloak implements OAuth 2.0 and OpenID Connect flows and includes a configurable client policy framework that can enforce security constraints on client registrations - such as requiring all redirect URIs use encrypted (HTTPS) schemes. The 'secure-client-uris' executor is one such policy component. CWE-20 (Improper Input Validation) is the root cause: the executor performs a prefix-based string check on the redirect URI value (e.g., startsWith-style logic) rather than parsing the URI structure and validating the scheme and host independently. This allows an attacker to craft a domain name that causes the URI string to pass the prefix check while the actual redirect destination uses an unencrypted HTTP channel. Affected products per CPE data include cpe:2.3:a:red_hat:red_hat_build_of_keycloak, cpe:2.3:a:red_hat:red_hat_single_sign-on_7, cpe:2.3:a:red_hat:red_hat_jboss_enterprise_application_platform_expansion_pack, and cpe:2.3:a:red_hat:red_hat_data_grid_8.
Know when Red Hat Build Of Keycloak gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Network-exploitable via crafted redirect URI (AV:N); high complexity due to domain crafting precondition (AC:H); no privileges required for the bypass itself (PR:N); user must initiate OAuth flow (UI:R); no availability impact and limited confidentiality/integrity loss.
Primary rating from Vendor (redhat).
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)NVD
More in Red Hat Build Of Keycloak
View allAccount takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in
Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML
Remote code execution in Keycloak is possible when an authenticated user with client-management permissions creates or i
Keycloak's SAML HTTP-Redirect binding can be tricked into accepting an unsigned, attacker-supplied SAML message: paramet
Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge
Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil
Account takeover in Keycloak's idp-auto-link authenticator lets an attacker who holds an account at a brokered identity
Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat
Authentication bypass in Keycloak's Organization identity-first login flow allows an authenticated attacker who belongs
Keycloak's UMA Protection API lets an authenticated realm user create a policy whose resourceType is not validated, so t
Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con
Keycloak's Dynamic Client Registration feature accepts registration requests in which an authorized registrant can map t
EUVD-2026-51483
GHSA-6j79-4gfx-fm6f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB