4.6medium
Keycloak: reflected xss via wildcard in oidc redirect_uri
- Severity
- 4.6medium CVSS:3.1 by redhat
- Exploit likelihood
- 1.32% (higher than 71% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- GHSA-cvg2-7c3j-g36j
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rhbk/keycloak-operator-bundle | Not specified Not affected: from 22.0.7-1 before * | CVE List |
| rhbk/keycloak-rhel9 | Not specified Not affected: from 22-6 before * | CVE List |
| rhbk/keycloak-rhel9-operator | Not specified Not affected: from 22-9 before * | CVE List |
| Red Hat Red Hat build of Keycloak 22.0.7 | Not specified | CVE List |
| rh-sso7-keycloak | Not specified 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 * | CVE List |
| rh-sso-7/sso76-openshift-rhel8 | Not specified Not affected: from 7.6-38 before *, from 7.6-41 before * | CVE List |
| rh-sso-7/sso7-rhel8-operator-bundle | Not specified Not affected: from 7.6.6-2 before * | CVE List |
| org.keycloak:keycloak-services (Maven) | before 23.0.3 | GitHub Advisory Database |
| redhat single_sign-on | before 7.6 | NVD |
| redhat keycloak | before 22.0.7 | NVD |
| redhat openshift_container_platform | 4.11, 4.12 | NVD |
| redhat openshift_container_platform_for_power | 4.9, 4.10 | NVD |
| redhat openshift_container_platform_ibm_z_systems | 4.9, 4.10 | NVD |
All scores
| redhat | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Keycloak prevents certain schemes in redirects, but permits them if a wildcard is appended to the token. This could permit an attacker to submit a specially crafted request leading to XSS or possibly further attacks.
NVD (es)
Se encontró una falla en Keycloak que impide ciertos esquemas en las redirecciones, pero los permite si se agrega un comodín al token. Este problema podría permitir que un atacante envíe una solicitud especialmente manipulada que dé lugar a cross-site scripting (XSS) o más ataques. Esta falla es el resultado de una solución incompleta para CVE-2020-10748.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-6134 changed 2026-11-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cvg2-7c3j-g36j changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2023-6134 changed 2026-09-22 | Public domain |