Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
4.6
Keycloak: Malicious Redirects Can Inject Code in Browser
published 2 years ago
Summary
Keycloak's redirect feature has a bug that can allow an attacker to inject malicious code in a user's browser, potentially leading to further attacks. This issue affects Keycloak users who rely on its redirect functionality. To protect your users, update Keycloak to the latest version or apply a patch from the vendor.
What to do
- Update keycloak org.keycloak:keycloak-services to version 23.0.3.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| maven | keycloak | org.keycloak:keycloak-services |
< 23.0.3 Fix: upgrade to 23.0.3
|
Original advisory text
Duplicate Advisory: Keycloak vulnerable to reflected XSS via wildcard in OIDC redirect_uri
## Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-cvg2-7c3j-g36j. This link is maintained to preserve external references.
## Original 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.
This advisory has been withdrawn because it is a duplicate of GHSA-cvg2-7c3j-g36j. This link is maintained to preserve external references.
## Original 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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-6134
- https://access.redhat.com/errata/RHSA-2023:7854
- https://access.redhat.com/errata/RHSA-2023:7855
- https://access.redhat.com/errata/RHSA-2023:7856
- https://access.redhat.com/errata/RHSA-2023:7857
- https://access.redhat.com/errata/RHSA-2023:7858
- https://access.redhat.com/errata/RHSA-2023:7860
- https://access.redhat.com/errata/RHSA-2023:7861
- https://access.redhat.com/security/cve/CVE-2023-6134
- https://bugzilla.redhat.com/show_bug.cgi?id=2249673
- https://github.com/advisories/GHSA-5968-qw33-h47j
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-75Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)
Timeline
Published15 Dec 2023
Updated6 Mar 2026
First seen6 Mar 2026
Sources
GHSA-5968-qw33-h47j · GHSA
Track software like this
Free during beta