# CVE-2023-6134: Keycloak: reflected xss via wildcard in oidc redirect_uri

- Severity: Medium 4.6 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.32%, higher than 71% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-14T21:42:12.160Z
- Modified: 2026-11-26T08:56:32.559Z
- Also known as: GHSA-cvg2-7c3j-g36j
- Weaknesses: CWE-75, CWE-79
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- rhbk/keycloak-operator-bundle: no versions given (not affected: from 22.0.7-1 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 22-6 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 22-9 before *)
- Red Hat Red Hat build of Keycloak 22.0.7: no versions given
- rh-sso7-keycloak: no versions given (not affected: from 0:18.0.11-2.redhat_00003.1.el7sso before *; from 0:18.0.12-1.redhat_00001.1.el7sso before *; from 0:18.0.11-2.redhat_00003.1.el8sso before *; from 0:18.0.12-1.redhat_00001.1.el8sso before *; from 0:18.0.11-2.redhat_00003.1.el9sso before *; from 0:18.0.12-1.redhat_00001.1.el9sso before *)
- rh-sso-7/sso76-openshift-rhel8: no versions given (not affected: from 7.6-38 before *; from 7.6-41 before *)
- rh-sso-7/sso7-rhel8-operator-bundle: no versions given (not affected: from 7.6.6-2 before *)
- org.keycloak:keycloak-services (Maven): before 23.0.3
- redhat single_sign-on: before 7.6
- redhat keycloak: before 22.0.7
- redhat openshift_container_platform: 4.11; 4.12
- redhat openshift_container_platform_for_power: 4.9; 4.10
- redhat openshift_container_platform_ibm_z_systems: 4.9; 4.10

## Every score

- redhat: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2023:7857> (exploit, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7854> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7855> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7856> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7858> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7860> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7861> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2024:0798> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0799> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0800> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0801> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2024:0804> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2023-6134> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2249673> (issue-tracking, web)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-cvg2-7c3j-g36j> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-6134> (advisory)
- <https://github.com/keycloak/keycloak/commit/15a21bf8e4fb71f006ba9caf25b9c9d1d152cd20> (web)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2023-6134](https://www.cve.org/CVERecord?id=CVE-2023-6134), CVE Terms of Use, modified 2026-11-26
- GitHub Advisory Database: [GHSA-cvg2-7c3j-g36j](https://github.com/advisories/GHSA-cvg2-7c3j-g36j), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-6134](https://nvd.nist.gov/vuln/detail/CVE-2023-6134), Public domain, modified 2026-09-22

---

Page: https://cve.day/CVE-2023-6134 · Whole record: https://cve.day/CVE-2023-6134.json · Rebuilt by cve.day 2026-11-26T09:07:11.173Z
