CVE-2026-137431

Keycloak-services: keycloak-services: leading ? in a redirect_uri parameter name bypasses the forbidden oidc parameter check

Published Nov 26, 2026 CVSS 3.1 · 4.2 Medium EPSS n/a KEV · Not listed
Description
A flaw was found in the keycloak-services component of Keycloak, which is used to handle OpenID Connect authentication flows. The issue occurs because the security check that prevents attackers from pre-seeding security parameters in a redirect URL can be bypassed by adding an extra question mark character to the parameter name. This allows an attacker to trick a user's browser into using an attacker-controlled login code. As a result, a victim may be unknowingly logged into an attacker's account, leading to account confusion or the exposure of sensitive data entered by the victim.

Analysis

AI-generated

Technical impact

A flaw in Keycloak‑services permits an attacker to bypass the check on forbidden OIDC parameters by prefixing a parameter name with an extra question mark. This allows an attacker to insert a malicious redirect that forces a victim’s browser to use an attacker‑controlled login code. The result is a victim being logged into the attacker’s account, potentially exposing sensitive data entered during that session. The weakness is a parameter handling flaw (CWE‑1288), and no remote code execution or privilege escalation is involved.

Affected Systems

The vulnerability affects Red Hat Build of Keycloak and Red Hat Single Sign‑On 7. No specific version range is supplied in the CNA data, but any installation of these products that implements the described redirect_uri handling may be impacted.

Risk and Exploitability

The CVSS score is 4.2, indicating low severity. EPSS is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting a low exploitation probability. The likely attack vector is a client‑side phishing scenario where an attacker crafts a malicious URL that the victim clicks, triggering the redirect. Because the exploitation requires user interaction, the likelihood of widespread automated attacks is low, but the potential impact on account integrity remains significant for targeted victims.

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

  • Validate redirect_uri parameters to reject names containing leading question marks.
  • Configure the Keycloak instance to enforce strict redirect_uri checks and whitelist allowed parameter names.
  • Educate users about suspicious redirects and monitor session logs for anomalies that may indicate a compromised login.
  • No official workaround is available; follow Red Hat's advisory for any interim guidance.

Generated by OpenCVE AI on November 26, 2026 at 12:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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 keycloak-services component of Keycloak, which is used to handle OpenID Connect authentication flows. The issue occurs because the security check that prevents attackers from pre-seeding security parameters in a redirect URL can be bypassed by adding an extra question mark character to the parameter name. This allows an attacker to trick a user's browser into using an attacker-controlled login code. As a result, a victim may be unknowingly logged into an attacker's account, leading to account confusion or the exposure of sensitive data entered by the victim.
Title Keycloak-services: keycloak-services: leading ? in a redirect_uri parameter name bypasses the forbidden oidc parameter check
First Time appeared Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
Weaknesses CWE-1288
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': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-1288

    Improper Validation of Consistency within Input

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 26, 2026, 11:35 AM
Reserved
Nov 26, 2026, 10:58 AM
Status
Awaiting Analysis
Published
Nov 26, 2026, 12:17 PM
Modified
Nov 26, 2026, 12:17 PM