CVE-2023-6134

Keycloak: reflected xss via wildcard in oidc redirect_uri

State
Published
Severity
4.6 Medium
Published
Dec 14, 2023
Updated
Sep 22, 2026
Reserved
Nov 14, 2023

Read the record on cve.org

Description

A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to the token. This issue could allow an attacker to submit a specially crafted request leading to cross-site scripting (XSS) or further attacks. This flaw is the result of an incomplete fix for CVE-2020-10748.

Scores

CVSSScoreVectorSource
3.14.6 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:Nredhat

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected Products

ProductVersions
Red Hat build of Keycloak 22Red Hat
  • 22.0.7-1 and laterNot affected
Red Hat build of Keycloak 22Red Hat
  • 22-6 and laterNot affected
Red Hat build of Keycloak 22Red Hat
  • 22-9 and laterNot affected
Red Hat build of Keycloak 22.0.7Red Hat
    Red Hat Single Sign-On 7Red Hat
      Red Hat Single Sign-On 7.6 for RHEL 7Red Hat
      • 0:18.0.11-2.redhat_00003.1.el7sso and laterNot affected
      Red Hat Single Sign-On 7.6 for RHEL 7Red Hat
      • 0:18.0.12-1.redhat_00001.1.el7sso and laterNot affected
      Red Hat Single Sign-On 7.6 for RHEL 8Red Hat
      • 0:18.0.11-2.redhat_00003.1.el8sso and laterNot affected
      Red Hat Single Sign-On 7.6 for RHEL 8Red Hat
      • 0:18.0.12-1.redhat_00001.1.el8sso and laterNot affected
      Red Hat Single Sign-On 7.6 for RHEL 9Red Hat
      • 0:18.0.11-2.redhat_00003.1.el9sso and laterNot affected
      Red Hat Single Sign-On 7.6 for RHEL 9Red Hat
      • 0:18.0.12-1.redhat_00001.1.el9sso and laterNot affected
      RHEL-8 based Middleware ContainersRed Hat
      • 7.6-38 and laterNot affected
      RHEL-8 based Middleware ContainersRed Hat
      • 7.6.6-2 and laterNot affected
      RHEL-8 based Middleware ContainersRed Hat
      • 7.6-41 and laterNot affected
      Single Sign-On 7.6.6Red Hat

        References

        Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.