MEDIUM4.6
GHSA-cvg2-7c3j-g36j
Keycloak vulnerable to reflected XSS via wildcard in OIDC redirect_uri
Quick fix
GHSA-cvg2-7c3j-g36j — org.keycloak:keycloak-services: upgrade to the fixed version with the command below.
# pom.xml: bump <version>23.0.3</version> for org.keycloak:keycloak-servicesDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.keycloak:keycloak-services
Introduced in:
0Fixed in: 23.0.3Fix
# pom.xml: bump <version>23.0.3</version> for org.keycloak:keycloak-servicesReferences
- 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://access.redhat.com/errata/RHSA-2023:7854[WEB]
- https://access.redhat.com/errata/RHSA-2023:7855[WEB]
- https://access.redhat.com/errata/RHSA-2023:7856[WEB]
- https://access.redhat.com/errata/RHSA-2023:7857[WEB]
- https://access.redhat.com/errata/RHSA-2023:7858[WEB]
- https://access.redhat.com/errata/RHSA-2023:7860[WEB]
- https://access.redhat.com/errata/RHSA-2023:7861[WEB]
- https://access.redhat.com/security/cve/CVE-2023-6134[WEB]
- https://bugzilla.redhat.com/show_bug.cgi?id=2249673[WEB]
- https://github.com/keycloak/keycloak[PACKAGE]