Skip to main content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Register crafted bypass domain name
  2. Delivery
    Configure malicious HTTP redirect URI on Keycloak client
  3. Exploit
    Victim initiates OAuth authorization flow
  4. Execution
    Keycloak prefix check bypassed, code redirected to HTTP URI
  5. Impact
    Intercept 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (redhat) PRIMARY MEDIUM
NVD 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
vuln.today AI 4.2 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 4.2 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Aug 07, 2026 - 14:37 NVD
4.2 (MEDIUM) 5.4 (MEDIUM)
CVE Published
Jul 31, 2026 - 07:08 cve.org
MEDIUM 4.2

DescriptionNVD

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

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
widely deployed enterprise IAM platform across Red Hat ecosystems
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_data_grid_8:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_jboss_enterprise_application_platform_expansion_pack:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_single_sign-on_7:*:*:*:*:*:*:*:*
CVE-2026-18963 CRITICAL POC
9.1 Aug 18

Account takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in

CVE-2026-16442 CRITICAL
9.8 Aug 05

Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML

CVE-2026-120984 CRITICAL
9.1 Nov 07

Remote code execution in Keycloak is possible when an authenticated user with client-management permissions creates or i

CVE-2026-117691 CRITICAL
9.1 Nov 05

Keycloak's SAML HTTP-Redirect binding can be tricked into accepting an unsigned, attacker-supplied SAML message: paramet

CVE-2026-16443 CRITICAL
9.1 Aug 05

Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge

CVE-2026-15572 HIGH
8.8 Aug 05

Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil

CVE-2026-97175 HIGH
8.8 Nov 05

Account takeover in Keycloak's idp-auto-link authenticator lets an attacker who holds an account at a brokered identity

CVE-2026-93569 HIGH
8.2 Sep 18

Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat

CVE-2026-112208 HIGH
8.1 Nov 05

Authentication bypass in Keycloak's Organization identity-first login flow allows an authenticated attacker who belongs

CVE-2026-114232 HIGH
8.1 Nov 05

Keycloak's UMA Protection API lets an authenticated realm user create a policy whose resourceType is not validated, so t

CVE-2026-9800 HIGH
8.1 Jun 25

Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con

CVE-2026-92857 HIGH
8.1 Nov 05

Keycloak's Dynamic Client Registration feature accepts registration requests in which an authorized registrant can map t

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy